Fixed bug #461 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Thu, 19 Jul 2007 08:08:16 +0000
branchSDL-1.2
changeset 4082 01dbf7134045
parent 4081 10be2cee175d
child 4083 a66ac59b3939
Fixed bug #461

Fixed a couple of bugs in the OpenGL window reset.
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);