changeset 4082:01dbf7134045 SDL-1.2

Fixed bug #461 Fixed a couple of bugs in the OpenGL window reset.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 19 Jul 2007 08:08:16 +0000
parents 10be2cee175d
children a66ac59b3939
files src/video/wincommon/SDL_wingl.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);