From 242da40f2ba446b3f92966461aa55c1bced8debc Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 16 Oct 2009 02:39:30 -0700 Subject: Fix WindowsOffscreenWGLDrawable --- .../com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java b/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java index f254748d1..cb8390504 100644 --- a/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java +++ b/src/jogl/classes/com/sun/opengl/impl/windows/wgl/WindowsOffscreenWGLDrawable.java @@ -66,7 +66,7 @@ public class WindowsOffscreenWGLDrawable extends WindowsWGLDrawable { } private void create() { - NullWindow nw = (NullWindow) getNativeWindow(); + NativeWindow nw = getNativeWindow(); WindowsWGLGraphicsConfiguration config = (WindowsWGLGraphicsConfiguration)nw.getGraphicsConfiguration().getNativeGraphicsConfiguration(); GLCapabilities capabilities = (GLCapabilities)config.getRequestedCapabilities(); int width = getWidth(); @@ -75,7 +75,8 @@ public class WindowsOffscreenWGLDrawable extends WindowsWGLDrawable { BITMAPINFOHEADER header = info.bmiHeader(); int bitsPerPixel = (capabilities.getRedBits() + capabilities.getGreenBits() + - capabilities.getBlueBits()); + capabilities.getBlueBits() + + capabilities.getAlphaBits()); header.biSize(header.size()); header.biWidth(width); // NOTE: negating the height causes the DIB to be in top-down row -- cgit v1.2.3