From: <ka...@us...> - 2011-07-13 19:29:21
|
Revision: 3584 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3584&view=rev Author: kappa1 Date: 2011-07-13 19:29:15 +0000 (Wed, 13 Jul 2011) Log Message: ----------- Updated JavaDoc for the new resizing api to clarify behaviour when running in fullscreen or with Display.setParent(). Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2011-07-13 12:44:25 UTC (rev 3583) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2011-07-13 19:29:15 UTC (rev 3584) @@ -1270,6 +1270,8 @@ /** * @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 @@ /** * @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 @@ /** * @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(). */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |