mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
Fix incorrect pitch in sdl_seticon
Was causing garbled icon on linux. 16 pixels * 4 bytes per pixel = 64, not 128.
This commit is contained in:
@@ -210,7 +210,7 @@ void sdl_seticon(void)
|
||||
//SDL_Surface *icon = SDL_CreateRGBSurfaceFrom(app_icon_w32, 32, 32, 32, 128, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000);
|
||||
//SDL_WM_SetIcon(icon, NULL/*app_icon_mask*/);
|
||||
#else
|
||||
SDL_Surface *icon = SDL_CreateRGBSurfaceFrom(app_icon, 16, 16, 32, 128, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000);
|
||||
SDL_Surface *icon = SDL_CreateRGBSurfaceFrom(app_icon, 16, 16, 32, 64, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000);
|
||||
SDL_WM_SetIcon(icon, NULL/*app_icon_mask*/);
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user