diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/classes/jogamp/newt/ScreenImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newt/classes/jogamp/newt/ScreenImpl.java b/src/newt/classes/jogamp/newt/ScreenImpl.java index 0653c5921..fdf80586a 100644 --- a/src/newt/classes/jogamp/newt/ScreenImpl.java +++ b/src/newt/classes/jogamp/newt/ScreenImpl.java @@ -493,6 +493,9 @@ public abstract class ScreenImpl extends Screen implements ScreenModeListener { res = getCurrentScreenModeImpl(); } if(null == res) { + if( 0==getWidth()*getHeight() ) { + updateVirtualScreenOriginAndSize(); + } int[] props = new int[ScreenModeUtil.NUM_SCREEN_MODE_PROPERTIES_ALL]; int i = 0; props[i++] = 0; // set later for verification of iterator |