mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
mod: changed closeRequested to follow isMinimized()
This commit is contained in:
parent
c022100cab
commit
b46242760d
1 changed files with 10 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ public final class Display {
|
|||
private static int handle;
|
||||
|
||||
/** Whether or not the display has been requested to shutdown by the user */
|
||||
public static boolean closeRequested = false;
|
||||
private static boolean closeRequested = false;
|
||||
|
||||
/**
|
||||
* No construction allowed.
|
||||
|
|
@ -217,4 +217,13 @@ public final class Display {
|
|||
* @return true if the display is minimized
|
||||
*/
|
||||
public static native boolean isMinimized();
|
||||
|
||||
/**
|
||||
* Determines if the user has requested that the application should close.
|
||||
*
|
||||
* @return true if the user has requested that the application should close
|
||||
*/
|
||||
public static boolean isCloseRequested() {
|
||||
return closeRequested;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue