aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-12-16 04:01:50 +0000
committerSven Gothel <[email protected]>2001-12-16 04:01:50 +0000
commita0ba5f95da3acd54769834ed3b4c84b745004f04 (patch)
tree0a7de1e336be85ea4430779a6f17fac34cfc2c51
parent44047a8fd634a9c937139c7ad56ea2fa19280cd8 (diff)
switched X11 alpha to INT_ARGB
-rw-r--r--gl4java/awt/GLOffScreenDrawable.java4
-rw-r--r--gl4java/swing/GLJPanel.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/gl4java/awt/GLOffScreenDrawable.java b/gl4java/awt/GLOffScreenDrawable.java
index 83572f4..7edf420 100644
--- a/gl4java/awt/GLOffScreenDrawable.java
+++ b/gl4java/awt/GLOffScreenDrawable.java
@@ -438,7 +438,7 @@ public class GLOffScreenDrawable
case GLContext.OsUnknown:
default:
if(caps.getAlphaBits()>0)
- awtFormat = BufferedImage.TYPE_4BYTE_ABGR;
+ awtFormat = BufferedImage.TYPE_INT_ARGB;
else
awtFormat = BufferedImage.TYPE_3BYTE_BGR;
break;
@@ -468,7 +468,7 @@ public class GLOffScreenDrawable
if(GLContext.gljClassDebug)
System.out.println("awt=4BYTE_ABGR, gl=BGRA,UNSIGNED_INT_8_8_8_8");
glFormat = GL_BGRA;
- glType = GL_UNSIGNED_INT_8_8_8_8;
+ glType = GL_UNSIGNED_BYTE;
glComps = 4;
dbByte = (DataBufferByte)
offImage.getRaster().getDataBuffer();
diff --git a/gl4java/swing/GLJPanel.java b/gl4java/swing/GLJPanel.java
index e3c83c3..8cbdece 100644
--- a/gl4java/swing/GLJPanel.java
+++ b/gl4java/swing/GLJPanel.java
@@ -516,7 +516,7 @@ public class GLJPanel extends JPanel
case GLContext.OsUnknown:
default:
if(caps.getAlphaBits()>0)
- awtFormat = BufferedImage.TYPE_4BYTE_ABGR;
+ awtFormat = BufferedImage.TYPE_INT_ARGB;
else
awtFormat = BufferedImage.TYPE_3BYTE_BGR;
break;