diff options
author | Sven Gothel <[email protected]> | 2011-12-26 00:00:25 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-12-26 00:00:25 +0100 |
commit | e93efe83a96fcacb812a8ff8f4102578f88423f9 (patch) | |
tree | b3cde4c79ac643cbeb8bb60dc74bfd732366f17c /src/newt/classes/jogamp | |
parent | 024b0f630e7392d2cdf586b4db42f2111a50a00c (diff) |
NEWT/Android: MonitorMode: Don't validate refreshRate (0 on some devices); AndroidWindow: Trigger ScreenModeChanged only if Screen is already valid.
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java index 32879b037..6348cf19e 100644 --- a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java +++ b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java @@ -343,7 +343,9 @@ public class AndroidWindow extends jogamp.newt.WindowImpl implements Callback2 { surfaceHandle = 0; surface=null; } - getScreen().getCurrentScreenMode(); // if ScreenMode changed .. trigger ScreenMode event + if(getScreen().isNativeValid()) { + getScreen().getCurrentScreenMode(); // if ScreenMode changed .. trigger ScreenMode event + } if(0>x || 0>y) { x = 0; |