Mercurial > sdl-ios-xcode
comparison src/video/windx5/SDL_dx5video.c @ 1280:f61f045343d3
Re-query the SDL_WINDOWID each time we initialize the video
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Jan 2006 06:11:38 +0000 |
parents | d31afac94eff |
children | ea3888b472bf |
comparison
equal
deleted
inserted
replaced
1279:e867f327aa54 | 1280:f61f045343d3 |
---|---|
1131 if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE; | 1131 if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE; |
1132 #endif | 1132 #endif |
1133 } | 1133 } |
1134 | 1134 |
1135 /* DJM: Don't piss of anyone who has setup his own window */ | 1135 /* DJM: Don't piss of anyone who has setup his own window */ |
1136 if ( SDL_windowid == NULL ) | 1136 if ( !SDL_windowid ) |
1137 SetWindowLong(SDL_Window, GWL_STYLE, style); | 1137 SetWindowLong(SDL_Window, GWL_STYLE, style); |
1138 | 1138 |
1139 /* Resize the window (copied from SDL WinDIB driver) */ | 1139 /* Resize the window (copied from SDL WinDIB driver) */ |
1140 if ( SDL_windowid == NULL ) { | 1140 if ( !SDL_windowid ) { |
1141 HWND top; | 1141 HWND top; |
1142 UINT swp_flags; | 1142 UINT swp_flags; |
1143 const char *window = getenv("SDL_VIDEO_WINDOW_POS"); | 1143 const char *window = getenv("SDL_VIDEO_WINDOW_POS"); |
1144 const char *center = getenv("SDL_VIDEO_CENTERED"); | 1144 const char *center = getenv("SDL_VIDEO_CENTERED"); |
1145 | 1145 |
1221 #if WS_MAXIMIZE | 1221 #if WS_MAXIMIZE |
1222 if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE; | 1222 if (IsZoomed(SDL_Window)) style |= WS_MAXIMIZE; |
1223 #endif | 1223 #endif |
1224 } | 1224 } |
1225 /* DJM: Don't piss of anyone who has setup his own window */ | 1225 /* DJM: Don't piss of anyone who has setup his own window */ |
1226 if ( SDL_windowid == NULL ) | 1226 if ( !SDL_windowid ) |
1227 SetWindowLong(SDL_Window, GWL_STYLE, style); | 1227 SetWindowLong(SDL_Window, GWL_STYLE, style); |
1228 | 1228 |
1229 /* Set DirectDraw sharing mode.. exclusive when fullscreen */ | 1229 /* Set DirectDraw sharing mode.. exclusive when fullscreen */ |
1230 if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) { | 1230 if ( (flags & SDL_FULLSCREEN) == SDL_FULLSCREEN ) { |
1231 sharemode = DDSCL_FULLSCREEN|DDSCL_EXCLUSIVE|DDSCL_ALLOWREBOOT; | 1231 sharemode = DDSCL_FULLSCREEN|DDSCL_EXCLUSIVE|DDSCL_ALLOWREBOOT; |