diff options
author | Sven Gothel <[email protected]> | 2008-11-27 03:27:17 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-11-27 03:27:17 +0000 |
commit | 62daa94704f3f5125916b81a3494d45ab0c0d09a (patch) | |
tree | 4292296ffb209dd616788eeb5bdc5c5ebe0e557e /src/classes/com/sun/javafx/newt/x11/X11Screen.java | |
parent | 47c0b60fa9fdd1df48cad1ec999ba40c3185e28f (diff) |
Newt-KD: working inc. events. Screen size can be set w/ property newt.ws.swidth newt.ws.sheight
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1807 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/javafx/newt/x11/X11Screen.java')
-rwxr-xr-x | src/classes/com/sun/javafx/newt/x11/X11Screen.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/classes/com/sun/javafx/newt/x11/X11Screen.java b/src/classes/com/sun/javafx/newt/x11/X11Screen.java index 5920d4997..9482c09c2 100755 --- a/src/classes/com/sun/javafx/newt/x11/X11Screen.java +++ b/src/classes/com/sun/javafx/newt/x11/X11Screen.java @@ -49,6 +49,8 @@ public class X11Screen extends Screen { if (handle == 0 ) { throw new RuntimeException("Error creating screen: "+index); } + setScreenSize(getWidth0(display.getHandle(), index), + getHeight0(display.getHandle(), index)); } //---------------------------------------------------------------------- @@ -56,4 +58,7 @@ public class X11Screen extends Screen { // private native long GetScreen(long dpy, int scrn_idx); + private native int getWidth0(long display, int scrn_idx); + private native int getHeight0(long display, int scrn_idx); } + |