aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-12-23 03:33:30 +0100
committerSven Gothel <[email protected]>2011-12-23 03:33:30 +0100
commit3f5df93484a2ea97c6e51a717f05d9ddcec64d84 (patch)
tree33d6bbed9029c4c9fabc4db023d20162a82096cb /src/newt/native
parentc6fca0edc9f092a8f08f14f6ad128b62c6227c6e (diff)
Screen: width/height reflects virtual Screen size (-> big-desktop)
Add updateScreenSize() utilizing new getNativeScreenSizeImpl() to set/update the virtual Screen size. This replaces setScreenSize() where the ScreenMode dimension was being used which doesn't reflect the virtual size. ScreenMode Test Impact: We cannot assertEquals(sm.getRotatedWidth(), screen.getWidth()), since ScreenMode size != virtual size.
Diffstat (limited to 'src/newt/native')
-rw-r--r--src/newt/native/X11Screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newt/native/X11Screen.c b/src/newt/native/X11Screen.c
index ce8265556..1b7fea770 100644
--- a/src/newt/native/X11Screen.c
+++ b/src/newt/native/X11Screen.c
@@ -57,14 +57,14 @@ JNIEXPORT jint JNICALL Java_jogamp_newt_driver_x11_X11Screen_getWidth0
(JNIEnv *env, jclass clazz, jlong display, jint scrn_idx)
{
Display * dpy = (Display *) (intptr_t) display;
- return (jint) XDisplayWidth( dpy, scrn_idx);
+ return (jint) DisplayWidth( dpy, scrn_idx);
}
JNIEXPORT jint JNICALL Java_jogamp_newt_driver_x11_X11Screen_getHeight0
(JNIEnv *env, jclass clazz, jlong display, jint scrn_idx)
{
Display * dpy = (Display *) (intptr_t) display;
- return (jint) XDisplayHeight( dpy, scrn_idx);
+ return (jint) DisplayHeight( dpy, scrn_idx);
}
static int showedRandRVersion = 0;