comparison src/video/wincommon/SDL_wingl.c @ 1472:4aac8563c296

Fixed more Win64 portability issues
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Mar 2006 08:11:10 +0000
parents d910939febfa
children 0a2bd6507477
comparison
equal deleted inserted replaced
1471:9fb0eee04dd9 1472:4aac8563c296
43 /* If we were passed a window, then we can't create a new one */ 43 /* If we were passed a window, then we can't create a new one */
44 if ( !SDL_windowid ) { 44 if ( !SDL_windowid ) {
45 /* Save the existing window attributes */ 45 /* Save the existing window attributes */
46 LONG style; 46 LONG style;
47 RECT rect = { 0, 0, 0, 0 }; 47 RECT rect = { 0, 0, 0, 0 };
48 style = GetWindowLong(SDL_Window, GWL_STYLE); 48 style = GetWindowLongPtr(SDL_Window, GWL_STYLE);
49 GetWindowRect(SDL_Window, &rect); 49 GetWindowRect(SDL_Window, &rect);
50 DestroyWindow(SDL_Window); 50 DestroyWindow(SDL_Window);
51 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname, 51 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,
52 style, 52 style,
53 rect.left, rect.top, 53 rect.left, rect.top,