diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-03-23 00:03:03 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-03-23 00:03:03 (GMT) |
| commit | 47ed75e99e3e714f971efda6e91579906ef35652 (patch) | |
| tree | 6b0cbdccfc9ac8afdb8a376fb4d516d45e64f63e /src | |
| parent | 5937c369e6949ffe06c4618c6fb58baf5fd8731c (diff) | |
| download | powder-47ed75e99e3e714f971efda6e91579906ef35652.zip powder-47ed75e99e3e714f971efda6e91579906ef35652.tar.gz | |
Fix Linux icon variable declaration sitting inside a Windows Platform block
Diffstat (limited to 'src')
| -rw-r--r-- | src/graphics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c index 6e0651a..afad261 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -3758,6 +3758,7 @@ int sdl_open(void) HWND WindowHandle; HICON hIconSmall; HICON hIconBig; +#elif defined(LIN32) || defined(LIN64) SDL_Surface *icon; #endif int status; @@ -3778,7 +3779,7 @@ int sdl_open(void) hIconBig = (HICON)LoadImage(&__ImageBase, MAKEINTRESOURCE(101), IMAGE_ICON, 32, 32, LR_SHARED); SendMessage(WindowHandle, WM_SETICON, ICON_SMALL, (LPARAM)hIconSmall); SendMessage(WindowHandle, WM_SETICON, ICON_BIG, (LPARAM)hIconBig); -#elif defined(LIN32) || defined(LIN32) +#elif defined(LIN32) || defined(LIN64) icon = SDL_CreateRGBSurfaceFrom(app_icon, 16, 16, 32, 64, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000); SDL_WM_SetIcon(icon, NULL); #endif |
