diff options
author | Sven Gothel <[email protected]> | 2015-03-27 13:01:44 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-27 13:01:44 +0100 |
commit | 3b7a8f5f4e89adf84fd871c1440859ed3d89802e (patch) | |
tree | f261be0fa8a85e3237d8e6dc4a1b9839beec4045 /src/test/com | |
parent | eae39dbad70d6ecfe0f47766ee8afe99890e7337 (diff) |
StereoDeviceUtil: Only rotate if current mode doesn't match required rotation. Add verbosity.
Allowing user to permanently rotate the device ..
Diffstat (limited to 'src/test/com')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/jogl/stereo/StereoDemo01.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/jogl/stereo/StereoDemo01.java b/src/test/com/jogamp/opengl/test/junit/jogl/stereo/StereoDemo01.java index 39ca85527..37c7d0e1a 100644 --- a/src/test/com/jogamp/opengl/test/junit/jogl/stereo/StereoDemo01.java +++ b/src/test/com/jogamp/opengl/test/junit/jogl/stereo/StereoDemo01.java @@ -352,6 +352,9 @@ public class StereoDemo01 { System.err.println("Window.0.windowSize : "+window.getWidth()+" x "+window.getHeight()); System.err.println("Window.0.surfaceSize: "+window.getSurfaceWidth()+" x "+window.getSurfaceHeight()); window.setSurfaceSize(deviceRes.getWidth(), deviceRes.getHeight()); + if( useStereoScreen ) { + window.setPosition(devicePos.getX(), devicePos.getY()); + } System.err.println("Window.1.windowSize : "+window.getWidth()+" x "+window.getHeight()); System.err.println("Window.1.surfaceSize: "+window.getSurfaceWidth()+" x "+window.getSurfaceHeight()); |