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> 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: * java/nio/ByteBufferImpl.java:
(putChar): Inlined for speed. (putChar): Inlined for speed.
(put, get): Bulk methods can use arraycopy. (put, get): Bulk methods can use arraycopy.
......
...@@ -147,11 +147,6 @@ public class GdkGraphics extends Graphics ...@@ -147,11 +147,6 @@ public class GdkGraphics extends Graphics
int height = img.getHeight (null); int height = img.getHeight (null);
copyPixmap (img.getGraphics (), copyPixmap (img.getGraphics (),
x, y, width, height); 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; return true;
} }
...@@ -171,12 +166,6 @@ public class GdkGraphics extends Graphics ...@@ -171,12 +166,6 @@ public class GdkGraphics extends Graphics
int height = img.getHeight (null); int height = img.getHeight (null);
copyPixmap (img.getGraphics (), copyPixmap (img.getGraphics (),
x, y, width, height); 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; return true;
} }
...@@ -197,11 +186,6 @@ public class GdkGraphics extends Graphics ...@@ -197,11 +186,6 @@ public class GdkGraphics extends Graphics
copyAndScalePixmap (img.getGraphics (), false, false, copyAndScalePixmap (img.getGraphics (), false, false,
0, 0, img.getWidth (null), img.getHeight (null), 0, 0, img.getWidth (null), img.getHeight (null),
x, y, width, height); 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; return true;
} }
...@@ -286,12 +270,6 @@ public class GdkGraphics extends Graphics ...@@ -286,12 +270,6 @@ public class GdkGraphics extends Graphics
copyAndScalePixmap (img.getGraphics (), x_flip, y_flip, copyAndScalePixmap (img.getGraphics (), x_flip, y_flip,
sx_start, sy_start, s_width, s_height, sx_start, sy_start, s_width, s_height,
dx_start, dy_start, d_width, d_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; return true;
} }
......
...@@ -184,11 +184,6 @@ public class GtkImagePainter implements Runnable, ImageConsumer ...@@ -184,11 +184,6 @@ public class GtkImagePainter implements Runnable, ImageConsumer
startX + x, startY + y, startX + x, startY + y,
width, height, convertPixels (pixels, model), offset, width, height, convertPixels (pixels, model), offset,
scansize, affine); scansize, affine);
if (observer != null)
observer.imageUpdate (image,
ImageObserver.SOMEBITS,
x, y, width, height);
} }
public void 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