summaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
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;