diff options
author | Sven Gothel <[email protected]> | 2012-02-26 03:40:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-02-26 03:40:19 +0100 |
commit | 858aa2137a42fb60d0484c702f07e94e2de94026 (patch) | |
tree | 108ccbb77ad43520da3b30868bec24283eb0e013 /src | |
parent | 0bdc5fec88abd584c834ac0b4e42ca5f784e79de (diff) |
NEWT Screen.getCurrentScreenModeIntern() !ScreenMode case: Attempt to get screen size if 0.
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 |