Mercurial > sdl-ios-xcode
diff src/video/wincommon/SDL_wingl.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 | 031e093ba2a5 |
children | c9b51268668f |
line wrap: on
line diff
--- a/src/video/wincommon/SDL_wingl.c Sat Jan 28 05:47:11 2006 +0000 +++ b/src/video/wincommon/SDL_wingl.c Sun Jan 29 06:11:38 2006 +0000 @@ -44,15 +44,11 @@ static int WIN_GL_ResetWindow(_THIS) { int status = 0; - int can_reset = 1; - /* If we were passed a window, then we can't create a new one */ - if ( SDL_windowid ) { - can_reset = 0; - } #if 0 /* This doesn't work with DirectX code (see CVS comments) */ #ifndef _WIN32_WCE /* FIXME WinCE needs the UNICODE version of CreateWindow() */ - if ( can_reset ) { + /* If we were passed a window, then we can't create a new one */ + if ( !SDL_windowid ) { /* Save the existing window attributes */ LONG style; RECT rect = { 0, 0, 0, 0 };