Fixed bug #461 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Thu, 19 Jul 2007 08:08:16 +0000
branchSDL-1.2
changeset 408201dbf7134045
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
     1.1 --- a/src/video/wincommon/SDL_wingl.c	Wed Jul 18 04:07:46 2007 +0000
     1.2 +++ b/src/video/wincommon/SDL_wingl.c	Thu Jul 19 08:08:16 2007 +0000
     1.3 @@ -50,13 +50,15 @@
     1.4  		DestroyWindow(SDL_Window);
     1.5  		WIN_FlushMessageQueue();
     1.6  
     1.7 +		SDL_resizing = 1;
     1.8  		SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,
     1.9  		                          style,
    1.10  		                          rect.left, rect.top,
    1.11  		                          (rect.right-rect.left)+1,
    1.12 -		                          (rect.top-rect.bottom)+1,
    1.13 +		                          (rect.bottom-rect.top)+1,
    1.14  		                          NULL, NULL, SDL_Instance, NULL);
    1.15  		WIN_FlushMessageQueue();
    1.16 +		SDL_resizing = 0;
    1.17  
    1.18  		if ( SDL_Window ) {
    1.19  			this->SetCaption(this, this->wm_title, this->wm_icon);