Integrated Boux's fixes for Win32 + ATI graphics configurations:

- Fixed invisible context menu in fullscreen mode
- Fixed menu bar overlapping top of 3D view
sensor-dev
Chris Laurel 2009-12-06 21:40:14 +00:00
parent db85fa0bb3
commit 083b9ac577
1 changed files with 6 additions and 6 deletions

View File

@ -1972,7 +1972,7 @@ HWND CreateOpenGLWindow(int x, int y, int width, int height,
DWORD dwStyle;
if (newMode != 0)
{
dwStyle = WS_POPUP;
dwStyle = WS_POPUPWINDOW | WS_MAXIMIZE;
}
else
{
@ -2006,6 +2006,11 @@ HWND CreateOpenGLWindow(int x, int y, int width, int height,
return NULL;
}
if (newMode == 0)
SetMenu(hwnd, menuBar);
else
hideMenuBar = true;
bool firstContext = false;
if (glContext == NULL)
{
@ -2025,11 +2030,6 @@ HWND CreateOpenGLWindow(int x, int y, int width, int height,
}
}
if (newMode == 0)
SetMenu(hwnd, menuBar);
else
hideMenuBar = true;
return hwnd;
}