harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r530763 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java
Date Fri, 20 Apr 2007 12:24:57 GMT
Author: apetrenko
Date: Fri Apr 20 05:24:56 2007
New Revision: 530763

URL: http://svn.apache.org/viewvc?view=rev&rev=530763
Log:
Additional patch for HARMONY-3448 "[classlib][swing] Synth public classes are not implemented"
It would be better to remember the old color value and set it back after drawing.

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java?view=diff&rev=530763&r1=530762&r2=530763
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/SynthGraphicsUtils.java
Fri Apr 20 05:24:56 2007
@@ -76,8 +76,10 @@
     @SuppressWarnings("unused")
     public void drawLine(SynthContext context, Object paintKey, Graphics g,
             int x1, int y1, int x2, int y2) {
+        Color oldColor = g.getColor();
         g.setColor(context.getStyle().getColor(context, ColorType.FOREGROUND));
         g.drawLine(x1, y1, x2, y2);
+        g.setColor(oldColor);
     }
 
     /**



Mime
View raw message