Commit 99c11813 authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #461

Fixed a couple of bugs in the OpenGL window reset.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402556
parent d2459bb3
...@@ -50,13 +50,15 @@ static int WIN_GL_ResetWindow(_THIS) ...@@ -50,13 +50,15 @@ static int WIN_GL_ResetWindow(_THIS)
DestroyWindow(SDL_Window); DestroyWindow(SDL_Window);
WIN_FlushMessageQueue(); WIN_FlushMessageQueue();
SDL_resizing = 1;
SDL_Window = CreateWindow(SDL_Appname, SDL_Appname, SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,
style, style,
rect.left, rect.top, rect.left, rect.top,
(rect.right-rect.left)+1, (rect.right-rect.left)+1,
(rect.top-rect.bottom)+1, (rect.bottom-rect.top)+1,
NULL, NULL, SDL_Instance, NULL); NULL, NULL, SDL_Instance, NULL);
WIN_FlushMessageQueue(); WIN_FlushMessageQueue();
SDL_resizing = 0;
if ( SDL_Window ) { if ( SDL_Window ) {
this->SetCaption(this, this->wm_title, this->wm_icon); this->SetCaption(this, this->wm_title, this->wm_icon);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment