harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r577163 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java
Date Wed, 19 Sep 2007 05:37:44 GMT
Author: apetrenko
Date: Tue Sep 18 22:37:44 2007
New Revision: 577163

URL: http://svn.apache.org/viewvc?rev=577163&view=rev
Log:
Patch for HARMONY-4814 "[classlib][awt] method Graphics.clearRect works incorrectly"

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java?rev=577163&r1=577162&r2=577163&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java
Tue Sep 18 22:37:44 2007
@@ -1884,6 +1884,9 @@
                 return null;
             }
             Graphics g = behaviour.getGraphics(0, 0, w, h);
+            if(g instanceof Graphics2D) {
+                ((Graphics2D)g).setBackground(this.getBackground());
+            }
             g.setColor(foreColor);
             g.setFont(font);
             return g;



Mime
View raw message