harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r562661 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/windows/org/apache/harmony/awt/gl/windows/WinGraphicsConfiguration.java
Date Sat, 04 Aug 2007 05:51:13 GMT
Author: apetrenko
Date: Fri Aug  3 22:51:11 2007
New Revision: 562661

URL: http://svn.apache.org/viewvc?view=rev&rev=562661
Log:
Patch for HARMONY-4591 "[classlib][awt] 0 bits color model with hardware acceleration?"

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/windows/org/apache/harmony/awt/gl/windows/WinGraphicsConfiguration.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/windows/org/apache/harmony/awt/gl/windows/WinGraphicsConfiguration.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/windows/org/apache/harmony/awt/gl/windows/WinGraphicsConfiguration.java?view=diff&rev=562661&r1=562660&r2=562661
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/windows/org/apache/harmony/awt/gl/windows/WinGraphicsConfiguration.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/windows/org/apache/harmony/awt/gl/windows/WinGraphicsConfiguration.java
Fri Aug  3 22:51:11 2007
@@ -99,6 +99,11 @@
         }
 
         bits = pfd.get_cColorBits();
+        if (bits == 0) { 
+            cm = null; 
+            return; 
+        }
+        
         redBits = pfd.get_cRedBits();
         redShift = pfd.get_cRedShift();
         rmask = (int)(Math.pow(2,redBits)-1) << redShift;



Mime
View raw message