Commit f5c32e10 by Sven de Marothy Committed by Michael Koch

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
parent ebce970d
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.
......
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment