From 49ee4e6baffc10ffbdf965e314a834e1b1b52172 Mon Sep 17 00:00:00 2001 From: unodgs Date: Tue, 19 Jul 2011 20:23:31 +0000 Subject: [PATCH] Rainbow: WinGL.. git-svn-id: svn://ultimatepp.org/upp/trunk@3680 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- rainbow/WinGl/Win.cpp | 2 +- rainbow/WinGl/WinGl.h | 2 +- rainbow/WinGl/Wnd.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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(); }