From 06585fcd720b3a40e062cab96e8a49647a097600 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 23 Feb 2012 16:57:31 +0100 Subject: NEWT/ScreenMode DEBUG_TEST_SCREENMODE_DISABLED (-Dnewt.test.Screen.disableScreenMode) - If set also avoid 'getCurrentScreenModeImpl()' --- src/newt/classes/jogamp/newt/ScreenImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/newt') 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; -- cgit v1.2.3