mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
Windows: Re-add UpdateWindow to make sure fullscreen windows are cleared faster
This commit is contained in:
parent
1bc9ac0aad
commit
0234336feb
2 changed files with 7 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ 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;
|
||||
|
||||
|
|
@ -181,6 +182,7 @@ 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