Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5video.c Sat Jan 28 05:47:11 2006 +0000 +++ b/src/video/windx5/SDL_dx5video.c Sun Jan 29 06:11:38 2006 +0000 @@ -1133,11 +1133,11 @@ } /* DJM: Don't piss of anyone who has setup his own window */ - if ( SDL_windowid == NULL ) + if ( !SDL_windowid ) SetWindowLong(SDL_Window, GWL_STYLE, style); /* Resize the window (copied from SDL WinDIB driver) */ - if ( SDL_windowid == NULL ) { + if ( !SDL_windowid ) { HWND top; UINT swp_flags; const char *window = getenv("SDL_VIDEO_WINDOW_POS"); @@ -1223,7 +1223,7 @@ #endif } /* DJM: Don't piss of anyone who has setup his own window */ - if ( SDL_windowid == NULL ) + if ( !SDL_windowid ) SetWindowLong(SDL_Window, GWL_STYLE, style); /* Set DirectDraw sharing mode.. exclusive when fullscreen */