From b46242760d7fdef6bdc16468b2f1857a975f40f3 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Sun, 9 Feb 2003 17:55:30 +0000 Subject: [PATCH] mod: changed closeRequested to follow isMinimized() --- src/java/org/lwjgl/Display.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/org/lwjgl/Display.java b/src/java/org/lwjgl/Display.java index 1fd8d936..e35680a6 100644 --- a/src/java/org/lwjgl/Display.java +++ b/src/java/org/lwjgl/Display.java @@ -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; + } } \ No newline at end of file