harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r627387 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Component.java
Date Wed, 13 Feb 2008 12:52:07 GMT
Author: apetrenko
Date: Wed Feb 13 04:52:04 2008
New Revision: 627387

URL: http://svn.apache.org/viewvc?rev=627387&view=rev
Log:
There is no reason to check repainting property after graphics instance 
creation

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=627387&r1=627386&r2=627387&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
Wed Feb 13 04:52:04 2008
@@ -3695,7 +3695,7 @@
     }
 
     private void processPaintEvent(PaintEvent event) {
-        if (redrawManager == null) {
+        if (redrawManager == null || getIgnoreRepaint()) {
             return;
         }
         Rectangle clipRect = event.getUpdateRect();
@@ -3706,13 +3706,11 @@
         if (g == null) {
             return;
         }
-        if (!getIgnoreRepaint()) {
-            if (event.getID() == PaintEvent.PAINT) {
-                initGraphics(g, event);
-                paint(g);
-            } else {
-                update(g);
-            }
+        if (event.getID() == PaintEvent.PAINT) {
+            initGraphics(g, event);
+            paint(g);
+        } else {
+            update(g);
         }
         g.dispose();
     }



Mime
View raw message