[gui] [PATCH] Fix filtered image loading
David Jee
djee@redhat.com
Fri Jun 18 20:50:00 GMT 2004
Hello,
I committed the following patch to the java-gui-branch. It fixes a few
things related to filtered image loading, so that images that are
filtered using RGBImageFilter are loaded and painted properly.
-David Jee
2004-06-18 David Jee <djee@redhat.com>
* gnu/java/awt/image/ImageDecoder.java
(startProduction): Only add consumer if it's not added yet.
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
(GdkPixbufDecoder): Don't call initState() here.
(produce): Call initState() here, to ensure area_prepared and
area_updated signals are properly connected.
* gnu/java/awt/peer/gtk/GtkImage.java
(setColorModel): Use equals() to compare ColorModel objects.
(setPixels): Likewise.
* java/awt/image/ColorModel.java
(equals): Fix typo. Use Arrays.equals() to compare int arrays.
* java/awt/image/RGBImageFilter.java
(setColorModel): Set consumer's color model.
(setPixels): Use equals() to compare ColorModel objects.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IAAFilteredImages.patch
Type: text/x-patch
Size: 4821 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040618/58b30c45/attachment.bin>
More information about the Java-patches
mailing list