Mercurial > sdl-ios-xcode
comparison src/video/wincommon/SDL_syswm.c @ 1456:84de7511f79f
Fixed a bunch of 64-bit compatibility problems
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 01 Mar 2006 09:43:47 +0000 |
parents | bb6839704ed6 |
children | 337665b695d1 |
comparison
equal
deleted
inserted
replaced
1455:f487bb150acc | 1456:84de7511f79f |
---|---|
218 screen_icn = CreateIconFromResourceEx((Uint8 *)icon_win32, icon_len, | 218 screen_icn = CreateIconFromResourceEx((Uint8 *)icon_win32, icon_len, |
219 TRUE, 0x00030000, icon->w, icon->h, LR_DEFAULTCOLOR); | 219 TRUE, 0x00030000, icon->w, icon->h, LR_DEFAULTCOLOR); |
220 if ( screen_icn == NULL ) { | 220 if ( screen_icn == NULL ) { |
221 SDL_SetError("Couldn't create Win32 icon handle"); | 221 SDL_SetError("Couldn't create Win32 icon handle"); |
222 } else { | 222 } else { |
223 SetClassLong(SDL_Window, GCL_HICON, (LONG)screen_icn); | 223 SetClassLongPtr(SDL_Window, GCL_HICON, (LONG_PTR)screen_icn); |
224 } | 224 } |
225 SDL_stack_free(icon_win32); | 225 SDL_stack_free(icon_win32); |
226 #endif /* DISABLE_ICON_SUPPORT */ | 226 #endif /* DISABLE_ICON_SUPPORT */ |
227 } | 227 } |
228 | 228 |