1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix icons for SDL and Windows

This commit is contained in:
Mathieu Schroeter 2017-07-30 19:29:53 +02:00
parent 72d51a8e2c
commit 9013032ce5
6 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ file (COPY resources/image DESTINATION share/planetblupi)
file (COPY resources/movie DESTINATION share/planetblupi)
file (COPY resources/sound DESTINATION share/planetblupi)
file (COPY resources/music DESTINATION share/planetblupi)
file (COPY resources/icon/planetblupi.png DESTINATION share/planetblupi)
file (COPY resources/icon/blupi-256.png DESTINATION share/planetblupi)
# Windows stuff
@ -155,7 +155,7 @@ install (DIRECTORY resources/image DESTINATION share/planetblupi)
install (DIRECTORY resources/movie DESTINATION share/planetblupi)
install (DIRECTORY resources/sound DESTINATION share/planetblupi)
install (DIRECTORY resources/music DESTINATION share/planetblupi)
install (FILES resources/icon/planetblupi.png DESTINATION share/planetblupi)
install (FILES resources/icon/blupi-256.png DESTINATION share/planetblupi)
# Copy libwinpthread-1.dll which seems not be linkable statically
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

BIN
resources/win32/blupi.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

View File

@ -1 +1 @@
id ICON "planetblupi.ico"
id ICON "blupi.ico"

View File

@ -405,7 +405,7 @@ static bool DoInit (Sint32 argc, char *argv[])
return false;
}
auto icon = IMG_Load ((GetBaseDir () + "planetblupi.png").c_str ());
auto icon = IMG_Load ((GetBaseDir () + "blupi-256.png").c_str ());
SDL_SetWindowIcon (g_window, icon);
SDL_FreeSurface (icon);