From f0766fb6c45b7668d0e9903f58be198aeab43a4d Mon Sep 17 00:00:00 2001 From: kappa1 Date: Wed, 13 Jul 2011 19:29:15 +0000 Subject: [PATCH] Updated JavaDoc for the new resizing api to clarify behaviour when running in fullscreen or with Display.setParent(). --- src/java/org/lwjgl/opengl/Display.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/java/org/lwjgl/opengl/Display.java b/src/java/org/lwjgl/opengl/Display.java index 11589f37..319a2dd4 100644 --- a/src/java/org/lwjgl/opengl/Display.java +++ b/src/java/org/lwjgl/opengl/Display.java @@ -1270,6 +1270,8 @@ public final class Display { /** * @return true if the Display window has been resized. * This value will be updated after a call to Display.update(). + * + * This will return false if running in fullscreen or with Display.setParent(Canvas parent) */ public static boolean wasResized() { return false; @@ -1278,6 +1280,10 @@ public final class Display { /** * @return this method will return the width of the Display window. * + * If running in fullscreen mode it will return the width of the current set DisplayMode. + * If running Display.setParent(Canvas parent) is being used, the width of the parent + * will be returned. + * * This value will be updated after a call to Display.update(). */ public static int getWidth() { @@ -1286,6 +1292,10 @@ public final class Display { /** * @return this method will return the height of the Display window. + * + * If running in fullscreen mode it will return the height of the current set DisplayMode. + * If running Display.setParent(Canvas parent) is being used, the height of the parent + * will be returned. * * This value will be updated after a call to Display.update(). */