2005-04-20 Sven de Marothy <sven@physto.se>
authorSven de Marothy <sven@physto.se>
Wed, 20 Apr 2005 06:09:23 +0000 (08:09 +0200)
committerMichael Koch <mkoch@gcc.gnu.org>
Wed, 20 Apr 2005 06:09:23 +0000 (06:09 +0000)
* gnu/java/awt/peer/gtk/GdkGraphics.java:
(drawImage): Don't notify the image observer for offscreen images.
* gnu/java/awt/peer/gtk/GtkImagePainter.java:
(setPixels): Don't notify the image observer.

From-SVN: r98446

libjava/ChangeLog
libjava/gnu/java/awt/peer/gtk/GdkGraphics.java
libjava/gnu/java/awt/peer/gtk/GtkImagePainter.java

index 0270724..0fb344c 100644 (file)
@@ -1,5 +1,12 @@
 2005-04-20  Sven de Marothy  <sven@physto.se>
 
+       * gnu/java/awt/peer/gtk/GdkGraphics.java:
+       (drawImage): Don't notify the image observer for offscreen images.
+       * gnu/java/awt/peer/gtk/GtkImagePainter.java:
+       (setPixels): Don't notify the image observer.
+
+2005-04-20  Sven de Marothy  <sven@physto.se>
+
        * java/nio/ByteBufferImpl.java:
        (putChar): Inlined for speed.
        (put, get): Bulk methods can use arraycopy.
index c5978ba..70b3abc 100644 (file)
@@ -147,11 +147,6 @@ public class GdkGraphics extends Graphics
         int height = img.getHeight (null);
        copyPixmap (img.getGraphics (), 
                    x, y, width, height);
-        // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.
-        if (observer != null)
-          observer.imageUpdate (img,
-                                ImageObserver.FRAMEBITS,
-                                x, y, width, height);
        return true;
       }
 
@@ -171,12 +166,6 @@ public class GdkGraphics extends Graphics
         int height = img.getHeight (null);
        copyPixmap (img.getGraphics (), 
                    x, y, width, height);
-
-        // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.
-        if (observer != null)
-          observer.imageUpdate (img,
-                                ImageObserver.FRAMEBITS,
-                                x, y, width, height);
        return true;
       }
 
@@ -197,11 +186,6 @@ public class GdkGraphics extends Graphics
         copyAndScalePixmap (img.getGraphics (), false, false,
                             0, 0, img.getWidth (null), img.getHeight (null), 
                             x, y, width, height);
-        // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.
-        if (observer != null)
-          observer.imageUpdate (img,
-                                ImageObserver.FRAMEBITS,
-                                x, y, width, height);
         return true;
       }
 
@@ -286,12 +270,6 @@ public class GdkGraphics extends Graphics
         copyAndScalePixmap (img.getGraphics (), x_flip, y_flip,
                             sx_start, sy_start, s_width, s_height, 
                             dx_start, dy_start, d_width, d_height);
-
-        // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.
-        if (observer != null)
-          observer.imageUpdate (img,
-                                ImageObserver.FRAMEBITS,
-                                dx_start, dy_start, d_width, d_height);
         return true;
       }
 
index 1e5eb4f..9f2ecb7 100644 (file)
@@ -184,11 +184,6 @@ public class GtkImagePainter implements Runnable, ImageConsumer
                startX + x, startY + y,
                width, height, convertPixels (pixels, model), offset,
                scansize, affine);
-
-    if (observer != null)
-      observer.imageUpdate (image,
-                           ImageObserver.SOMEBITS,
-                           x, y, width, height);
   }
 
   public void