Windows: Don't use UpdateWindow after all. Instead, don't use a background brush at all to avoid windows clearing windows with non OpenGL drawing commands. Hopefully this will improve compatibility (The NeHe tutorials also don't specify a background brush).

This commit is contained in:
Elias Naur 2007-01-04 14:00:45 +00:00
parent 0234336feb
commit 97db4ca4b2
3 changed files with 2 additions and 8 deletions

View file

@ -136,7 +136,6 @@ final class WindowsDisplay implements DisplayImplementation {
showWindow(getHwnd(), SW_SHOWDEFAULT);
setForegroundWindow(getHwnd());
setFocus(getHwnd());
updateWindow(getHwnd());
}
private native void nCreateWindow(DisplayMode mode, boolean fullscreen, int x, int y) throws LWJGLException;
@ -182,7 +181,6 @@ final class WindowsDisplay implements DisplayImplementation {
private static native void showWindow(long hwnd, int mode);
private static native void setForegroundWindow(long hwnd);
private static native void setFocus(long hwnd);
private static native void updateWindow(long hwnd);
private void restoreDisplayMode() {
try {