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:
parent
db8a509180
commit
8c0ca39d2a
@ -821,11 +821,12 @@ DoInit (int argc, char * argv[], bool & exit)
|
|||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#ifdef __linux__
|
||||||
auto icon = IMG_Load ((GetShareDir () + "icons/hicolor/256x256/apps/blupi.png").c_str ());
|
auto icon = IMG_Load (
|
||||||
|
(GetShareDir () + "icons/hicolor/256x256/apps/blupi.png").c_str ());
|
||||||
SDL_SetWindowIcon (g_window, icon);
|
SDL_SetWindowIcon (g_window, icon);
|
||||||
SDL_FreeSurface (icon);
|
SDL_FreeSurface (icon);
|
||||||
#endif /* 0 */
|
#endif /* __linux__ */
|
||||||
|
|
||||||
g_renderer = SDL_CreateRenderer (
|
g_renderer = SDL_CreateRenderer (
|
||||||
g_window, -1, g_rendererType | SDL_RENDERER_TARGETTEXTURE);
|
g_window, -1, g_rendererType | SDL_RENDERER_TARGETTEXTURE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user