Win32: Always sepcify WS_CLIPCHILDREN | WS_CLIPSIBLINGS in window style flags, since it is required for SetPixelFormat to work (according to MSDN docs)
This commit is contained in:
parent
d329181fc6
commit
958029a667
|
@ -130,8 +130,9 @@ HWND createWindow(LPCTSTR window_class_name, int x, int y, int width, int height
|
|||
windowflags = WS_POPUP;
|
||||
} else {
|
||||
exstyle = WS_EX_APPWINDOW;
|
||||
windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MINIMIZEBOX | WS_SYSMENU;
|
||||
windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU;
|
||||
}
|
||||
windowflags = windowflags | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
|
||||
|
||||
// If we're not a fullscreen window, adjust the height to account for the
|
||||
// height of the title bar (unless undecorated)
|
||||
|
|
|
@ -383,8 +383,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Win32Display_reshape(JNIEnv *env, j
|
|||
windowflags = WS_POPUP;
|
||||
} else {
|
||||
exstyle = WS_EX_APPWINDOW;
|
||||
windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MINIMIZEBOX | WS_SYSMENU;
|
||||
windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU;
|
||||
}
|
||||
windowflags = windowflags | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
|
||||
|
||||
// If we're not a fullscreen window, adjust the height to account for the
|
||||
// height of the title bar:
|
||||
|
|
Loading…
Reference in New Issue