Mercurial > sdl-ios-xcode
diff src/video/windib/SDL_dibvideo.c @ 1472:4aac8563c296
Fixed more Win64 portability issues
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Mar 2006 08:11:10 +0000 |
parents | 8dfa9a6d69a5 |
children | 0a2bd6507477 |
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c Mon Mar 06 07:42:36 2006 +0000 +++ b/src/video/windib/SDL_dibvideo.c Mon Mar 06 08:11:10 2006 +0000 @@ -647,7 +647,7 @@ screen_pal = DIB_CreatePalette(bpp); } - style = GetWindowLong(SDL_Window, GWL_STYLE); + style = GetWindowLongPtr(SDL_Window, GWL_STYLE); style &= ~(resizestyle|WS_MAXIMIZE); if ( (video->flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) { style &= ~windowstyle; @@ -677,7 +677,7 @@ /* DJM: Don't piss of anyone who has setup his own window */ if ( !SDL_windowid ) - SetWindowLong(SDL_Window, GWL_STYLE, style); + SetWindowLongPtr(SDL_Window, GWL_STYLE, style); /* Delete the old bitmap if necessary */ if ( screen_bmp != NULL ) { @@ -780,7 +780,7 @@ bounds.top = SDL_windowY; bounds.right = SDL_windowX+video->w; bounds.bottom = SDL_windowY+video->h; - AdjustWindowRectEx(&bounds, GetWindowLong(SDL_Window, GWL_STYLE), FALSE, 0); + AdjustWindowRectEx(&bounds, GetWindowLongPtr(SDL_Window, GWL_STYLE), FALSE, 0); width = bounds.right-bounds.left; height = bounds.bottom-bounds.top; if ( (flags & SDL_FULLSCREEN) ) {