harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r475253 - /incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/OffscreenImage.java
Date Wed, 15 Nov 2006 14:57:17 GMT
Author: apetrenko
Date: Wed Nov 15 06:57:16 2006
New Revision: 475253

URL: http://svn.apache.org/viewvc?view=rev&rev=475253
Log:
Patch for HARMONY-1659 "[classlib][awt] Caching of images prevents from showing animation"

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/OffscreenImage.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/OffscreenImage.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/OffscreenImage.java?view=diff&rev=475253&r1=475252&r2=475253
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/OffscreenImage.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/OffscreenImage.java
Wed Nov 15 06:57:16 2006
@@ -218,6 +218,11 @@
                 }
             }
         }
+
+        if (imageSurf != null) {
+            imageSurf.invalidate();
+        }
+
         imageUpdate(this, ImageObserver.SOMEBITS, 0, 0, width, height);
     }
 
@@ -288,8 +293,12 @@
                 }
             }
         }
-        imageUpdate(this, ImageObserver.SOMEBITS, 0, 0, width, height);
 
+        if (imageSurf != null) {
+            imageSurf.invalidate();
+        }
+
+        imageUpdate(this, ImageObserver.SOMEBITS, 0, 0, width, height);
     }
 
     public void setDimensions(int width, int height) {



Mime
View raw message