mirror of
https://github.com/yawut/SDL.git
synced 2026-05-06 05:09:34 -05:00
Fixed bug #461
Fixed a couple of bugs in the OpenGL window reset. --HG-- branch : SDL-1.2
This commit is contained in:
parent
30b1504e45
commit
b1f660ba94
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user