Skip to content

Commit

Permalink
Fixed bug #461
Browse files Browse the repository at this point in the history
Fixed a couple of bugs in the OpenGL window reset.
  • Loading branch information
slouken committed Jul 19, 2007
1 parent 0122e60 commit cbfcfff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video/wincommon/SDL_wingl.c
Expand Up @@ -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);
Expand Down

0 comments on commit cbfcfff

Please sign in to comment.