From 5d5fa6ded1811ce35bf127d68b114b6b3c2e0e7c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 4 Dec 2010 04:54:19 +0100 Subject: X11 DummyWindow: Pass size and set size in proxy --- .../classes/com/jogamp/opengl/impl/x11/glx/X11DummyGLXDrawable.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com/jogamp') diff --git a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11DummyGLXDrawable.java b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11DummyGLXDrawable.java index 6c8d1fc91..72698d759 100644 --- a/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11DummyGLXDrawable.java +++ b/src/jogl/classes/com/jogamp/opengl/impl/x11/glx/X11DummyGLXDrawable.java @@ -35,7 +35,7 @@ import com.jogamp.nativewindow.impl.*; import com.jogamp.nativewindow.impl.x11.*; public class X11DummyGLXDrawable extends X11OnscreenGLXDrawable { - + private static final int f_dim = 128; private long dummyWindow = 0; /** @@ -57,8 +57,9 @@ public class X11DummyGLXDrawable extends X11OnscreenGLXDrawable { int scrn = screen.getIndex(); long visualID = config.getVisualID(); - dummyWindow = X11Util.CreateDummyWindow(dpy, scrn, visualID); + dummyWindow = X11Util.CreateDummyWindow(dpy, scrn, visualID, f_dim, f_dim); ns.setSurfaceHandle( dummyWindow ); + ns.setSize(f_dim, f_dim); updateHandle(); } -- cgit v1.2.3