harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r585891 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XGraphicsConfiguration.java
Date Thu, 18 Oct 2007 07:30:22 GMT
Author: ayza
Date: Thu Oct 18 00:30:22 2007
New Revision: 585891

URL: http://svn.apache.org/viewvc?rev=585891&view=rev
Log:
Applying Linux-specific patch from HARMONY-4902 ([classlib][awt] GraphicsConfiguration.getColorModel(int
transparency) returns wrong ColorModel)

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XGraphicsConfiguration.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XGraphicsConfiguration.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XGraphicsConfiguration.java?rev=585891&r1=585890&r2=585891&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XGraphicsConfiguration.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XGraphicsConfiguration.java
Thu Oct 18 00:30:22 2007
@@ -248,9 +248,9 @@
             case Transparency.OPAQUE:
                 return getColorModel();
             case Transparency.TRANSLUCENT:
+                return ColorModel.getRGBdefault();
             case Transparency.BITMASK:
-                // Transparency unsupported yet, return default model again
-                return getColorModel();
+                return new DirectColorModel(25, 0xFF0000, 0xFF00, 0xFF, 0x1000000);
             default:
                 // awt.0D=Invalid transparency
                 throw new IllegalArgumentException(Messages.getString("awt.0D")); //$NON-NLS-1$



Mime
View raw message