From cbfcfff6bcd2459febd2e3d1e77407e29d93db62 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 19 Jul 2007 08:08:16 +0000 Subject: [PATCH] Fixed bug #461 Fixed a couple of bugs in the OpenGL window reset. --- src/video/wincommon/SDL_wingl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video/wincommon/SDL_wingl.c b/src/video/wincommon/SDL_wingl.c index 88ceffce7..e807111ce 100644 --- a/src/video/wincommon/SDL_wingl.c +++ b/src/video/wincommon/SDL_wingl.c @@ -50,13 +50,15 @@ static int WIN_GL_ResetWindow(_THIS) 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);