Integrated Boux's fixes for Win32 + ATI graphics configurations:
- Fixed invisible context menu in fullscreen mode - Fixed menu bar overlapping top of 3D viewver1_6_1
parent
ec6a025165
commit
447e1eebe5
|
@ -1973,7 +1973,7 @@ HWND CreateOpenGLWindow(int x, int y, int width, int height,
|
||||||
DWORD dwStyle;
|
DWORD dwStyle;
|
||||||
if (newMode != 0)
|
if (newMode != 0)
|
||||||
{
|
{
|
||||||
dwStyle = WS_POPUP;
|
dwStyle = WS_POPUPWINDOW | WS_MAXIMIZE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2004,22 +2004,23 @@ HWND CreateOpenGLWindow(int x, int y, int width, int height,
|
||||||
MessageBox(NULL,
|
MessageBox(NULL,
|
||||||
"Could not get appropriate pixel format for OpenGL rendering.", "Fatal Error",
|
"Could not get appropriate pixel format for OpenGL rendering.", "Fatal Error",
|
||||||
MB_OK | MB_ICONERROR);
|
MB_OK | MB_ICONERROR);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (glContext == NULL)
|
|
||||||
glContext = wglCreateContext(deviceContext);
|
|
||||||
wglMakeCurrent(deviceContext, glContext);
|
|
||||||
|
|
||||||
if (newMode == 0)
|
if (newMode == 0)
|
||||||
SetMenu(hwnd, menuBar);
|
SetMenu(hwnd, menuBar);
|
||||||
else
|
else
|
||||||
hideMenuBar = true;
|
hideMenuBar = true;
|
||||||
|
|
||||||
|
if (glContext == NULL)
|
||||||
|
{
|
||||||
|
glContext = wglCreateContext(deviceContext);
|
||||||
|
}
|
||||||
|
wglMakeCurrent(deviceContext, glContext);
|
||||||
|
|
||||||
return hwnd;
|
return hwnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DestroyOpenGLWindow()
|
void DestroyOpenGLWindow()
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Reference in New Issue