From: <eli...@us...> - 2007-08-16 08:55:10
|
Revision: 2875 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2875&view=rev Author: elias_naur Date: 2007-08-16 01:55:06 -0700 (Thu, 16 Aug 2007) Log Message: ----------- Don't allow switching to fullscreen when a custom display mode is in effect. This is a change from before, where the current mode was simply overwritten with the initial (desktop) mode 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 2007-08-16 08:49:14 UTC (rev 2874) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/Display.java 2007-08-16 08:55:06 UTC (rev 2875) @@ -297,8 +297,7 @@ private static void switchDisplayMode() throws LWJGLException { if (!current_mode.isFullscreen()) { - LWJGLUtil.log("Switching to "+initial_mode); - setDisplayMode(initial_mode); + throw new IllegalStateException("Only modes acquired from getAvailableDisplayModes() can be used for fullscreen display"); } display_impl.switchDisplayMode(current_mode); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |