mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-31 22:04:04 -06:00
Rainbow: WinGL..
git-svn-id: svn://ultimatepp.org/upp/trunk@3680 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f5d6c405a7
commit
49ee4e6baf
3 changed files with 3 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ void ActivateGlContext()
|
|||
wglMakeCurrent(hDC, hRC);
|
||||
}
|
||||
|
||||
void DestroyGl(bool destroyWindow)
|
||||
void DestroyGl()
|
||||
{
|
||||
if(hDC != NULL && hRC != NULL)
|
||||
wglMakeCurrent(NULL, NULL);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ void Ctrl::SetDesktop(Ctrl& q)
|
|||
desktop = &q;
|
||||
desktop->SetRect(screenRect.GetSize());
|
||||
desktop->SetOpen(true);
|
||||
desktop->StateH(OPEN);
|
||||
desktop->NewTop();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue