summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl/impl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-12-04 04:54:46 +0100
committerSven Gothel <[email protected]>2010-12-04 04:54:46 +0100
commit539ec0fb0d657a1094b835c767d7f1c6c3de6ec9 (patch)
tree46b643bbb2fd5686235f876d67fe3d86747fcf1c /src/jogl/classes/com/jogamp/opengl/impl
parent5d5fa6ded1811ce35bf127d68b114b6b3c2e0e7c (diff)
WGL DummyWindow: Use size 128x128 and set size in proxy
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/impl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java b/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java
index c85545b48..015ef61a4 100644
--- a/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java
+++ b/src/jogl/classes/com/jogamp/opengl/impl/windows/wgl/WindowsDummyWGLDrawable.java
@@ -52,14 +52,16 @@ import javax.media.opengl.GLCapabilitiesImmutable;
import javax.media.opengl.GLException;
public class WindowsDummyWGLDrawable extends WindowsWGLDrawable {
+ private static final int f_dim = 128;
private long hwnd, hdc;
protected WindowsDummyWGLDrawable(GLDrawableFactory factory, GLCapabilitiesImmutable caps, AbstractGraphicsScreen absScreen) {
super(factory, new ProxySurface(WindowsWGLGraphicsConfigurationFactory.createDefaultGraphicsConfiguration(caps, absScreen)), true);
- hwnd = GDI.CreateDummyWindow(0, 0, 1, 1);
+ hwnd = GDI.CreateDummyWindow(0, 0, f_dim, f_dim);
hdc = GDI.GetDC(hwnd);
ProxySurface ns = (ProxySurface) getNativeSurface();
ns.setSurfaceHandle(hdc);
+ ns.setSize(f_dim, f_dim);
WindowsWGLGraphicsConfiguration config = (WindowsWGLGraphicsConfiguration)ns.getGraphicsConfiguration().getNativeGraphicsConfiguration();
try {