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:
Elias Naur 2005-03-30 10:46:21 +00:00
parent d329181fc6
commit 958029a667
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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: