logo       

Fixes to ImageObserver calls: msg#00173

java.classpath.patches

Subject: Fixes to ImageObserver calls

Hi,
Here's for review. This, I hope, should fix some bugs related to
ImageObserver. On doing a Graphics.drawImage() the observer gets too
many imageUpdate() calls, and this causes too many repaints when the
ImageObserver in question is a Component.


2005-03-24 Sven de Marothy <sven@xxxxxxxxx>

* 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 if all
pixels are set at once.

Attachment: observercalls.patch
Description: Text Data

_______________________________________________
Classpath-patches mailing list
Classpath-patches@xxxxxxx
http://lists.gnu.org/mailman/listinfo/classpath-patches
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise