# HG changeset patch # User Sam Lantinga # Date 1184832496 0 # Node ID 01dbf7134045b6b2dca1ac7451900714346023aa # Parent 10be2cee175d98e8db6ed2d106bba12d3b911c7f Fixed bug #461 Fixed a couple of bugs in the OpenGL window reset. diff -r 10be2cee175d -r 01dbf7134045 src/video/wincommon/SDL_wingl.c --- a/src/video/wincommon/SDL_wingl.c Wed Jul 18 04:07:46 2007 +0000 +++ b/src/video/wincommon/SDL_wingl.c Thu Jul 19 08:08:16 2007 +0000 @@ -50,13 +50,15 @@ DestroyWindow(SDL_Window); WIN_FlushMessageQueue(); + SDL_resizing = 1; SDL_Window = CreateWindow(SDL_Appname, SDL_Appname, style, rect.left, rect.top, (rect.right-rect.left)+1, - (rect.top-rect.bottom)+1, + (rect.bottom-rect.top)+1, NULL, NULL, SDL_Instance, NULL); WIN_FlushMessageQueue(); + SDL_resizing = 0; if ( SDL_Window ) { this->SetCaption(this, this->wm_title, this->wm_icon);