diff --git a/rainbow/WinGl/Win.cpp b/rainbow/WinGl/Win.cpp index fafd1ff93..402f24436 100644 --- a/rainbow/WinGl/Win.cpp +++ b/rainbow/WinGl/Win.cpp @@ -53,7 +53,7 @@ void ActivateGlContext() wglMakeCurrent(hDC, hRC); } -void DestroyGl(bool destroyWindow) +void DestroyGl() { if(hDC != NULL && hRC != NULL) wglMakeCurrent(NULL, NULL); diff --git a/rainbow/WinGl/WinGl.h b/rainbow/WinGl/WinGl.h index d6d25ff24..9d089ba78 100644 --- a/rainbow/WinGl/WinGl.h +++ b/rainbow/WinGl/WinGl.h @@ -29,7 +29,7 @@ extern HGLRC hRC; int CreateGlWindow(HINSTANCE hInstance); int CreateGlContext(); void ActivateGlContext(); -void DestroyGl(bool destroyWindow = true); +void DestroyGl(); LRESULT CALLBACK glWindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); float GetFps(); diff --git a/rainbow/WinGl/Wnd.cpp b/rainbow/WinGl/Wnd.cpp index d927842c8..045cb7f23 100644 --- a/rainbow/WinGl/Wnd.cpp +++ b/rainbow/WinGl/Wnd.cpp @@ -26,6 +26,7 @@ void Ctrl::SetDesktop(Ctrl& q) desktop = &q; desktop->SetRect(screenRect.GetSize()); desktop->SetOpen(true); + desktop->StateH(OPEN); desktop->NewTop(); }