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.

From-SVN: r98446
This commit is contained in:
Sven de Marothy 2005-04-20 08:09:23 +02:00 committed by Michael Koch
parent ebce970d7f
commit f5c32e10c5
3 changed files with 7 additions and 27 deletions

View File

@ -1,3 +1,10 @@
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:

View 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;
}

View 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