aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-02-23 16:57:31 +0100
committerSven Gothel <[email protected]>2012-02-23 16:57:31 +0100
commit06585fcd720b3a40e062cab96e8a49647a097600 (patch)
tree3d496c249d72fd85d4d2273ec72de2997cef7e2b /src/newt/classes
parent5b05aa83f57b7492b2705529033a7eaa09cf4463 (diff)
NEWT/ScreenMode DEBUG_TEST_SCREENMODE_DISABLED (-Dnewt.test.Screen.disableScreenMode) - If set also avoid 'getCurrentScreenModeImpl()'
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/jogamp/newt/ScreenImpl.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/newt/classes/jogamp/newt/ScreenImpl.java b/src/newt/classes/jogamp/newt/ScreenImpl.java
index 6c78a9653..0653c5921 100644
--- a/src/newt/classes/jogamp/newt/ScreenImpl.java
+++ b/src/newt/classes/jogamp/newt/ScreenImpl.java
@@ -486,7 +486,12 @@ public abstract class ScreenImpl extends Screen implements ScreenModeListener {
* the current screen size and dummy values.
*/
protected ScreenMode getCurrentScreenModeIntern() {
- ScreenMode res = getCurrentScreenModeImpl();
+ ScreenMode res;
+ if(DEBUG_TEST_SCREENMODE_DISABLED) {
+ res = null;
+ } else {
+ res = getCurrentScreenModeImpl();
+ }
if(null == res) {
int[] props = new int[ScreenModeUtil.NUM_SCREEN_MODE_PROPERTIES_ALL];
int i = 0;