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

Enable the window icon on Linux

This commit is contained in:
Mathieu Schroeter 2023-10-05 23:00:45 +02:00
parent db8a509180
commit 8c0ca39d2a
No known key found for this signature in database
GPG Key ID: 8B9145A5FA9DA8A8

View File

@ -821,11 +821,12 @@ DoInit (int argc, char * argv[], bool & exit)
return EXIT_FAILURE;
}
#if 0
auto icon = IMG_Load ((GetShareDir () + "icons/hicolor/256x256/apps/blupi.png").c_str ());
#ifdef __linux__
auto icon = IMG_Load (
(GetShareDir () + "icons/hicolor/256x256/apps/blupi.png").c_str ());
SDL_SetWindowIcon (g_window, icon);
SDL_FreeSurface (icon);
#endif /* 0 */
#endif /* __linux__ */
g_renderer = SDL_CreateRenderer (
g_window, -1, g_rendererType | SDL_RENDERER_TARGETTEXTURE);