Fix the window icon that cannot be loaded in release packages, refs 27d99765bb
.
Discussed with Imarok and elexis. This was SVN commit r21812.
This commit is contained in:
parent
c647dcd330
commit
a89bcf837b
@ -500,9 +500,12 @@ SDL_Window* CVideoMode::GetWindow()
|
||||
|
||||
void CVideoMode::SetWindowIcon()
|
||||
{
|
||||
// The window icon should be kept outside of art/textures/, or else it will be converted
|
||||
// to DDS by the archive builder and will become unusable here. Using DDS makes BGRA
|
||||
// conversion needlessly complicated.
|
||||
std::shared_ptr<u8> iconFile;
|
||||
size_t iconFileSize;
|
||||
if (g_VFS->LoadFile("art/textures/icons/window.png", iconFile, iconFileSize) != INFO::OK)
|
||||
if (g_VFS->LoadFile("art/icons/window.png", iconFile, iconFileSize) != INFO::OK)
|
||||
{
|
||||
LOGWARNING("Window icon not found.");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user