mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
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:
parent
0234336feb
commit
97db4ca4b2
3 changed files with 2 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue