This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug AWT/19847] AWT drawImage fails to render transparent GIFs
- From: "mark at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 23 Jun 2005 15:48:15 -0000
- Subject: [Bug AWT/19847] AWT drawImage fails to render transparent GIFs
- References: <20050209101926.19847.hendrich@informatik.uni-hamburg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mark at gcc dot gnu dot org 2005-06-23 15:48 -------
There are two parts to this bug.
1) Small images weren't loaded correctly.
2) An image that is scaled/clipped and doesn't use (0,0) as origin isn't scaled
correctly.
1) is fixed in GNU Classpath by:
2005-06-22 Mark Wielaard <mark@klomp.org>
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java
(pumpBytes): Throws IOException.
(pumpDone): New native method.
(produce): Call pumpDone().
* include/gnu_java_awt_peer_gtk_GdkPixbufDecoder.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
(Java_gnu_java_awt_peer_gtk_GdkPixbufDecoder_pumpDone): New method.
(Java_gnu_java_awt_peer_gtk_GdkPixbufDecoder_pumpBytes): Check for
errors on gdk_pixbuf_loader_write.
2) Isn't fixed yet. It occurs in gnu.java.awt.peer.gtk.GtkImage.drawImage()
where it says:
// Clipping. This requires the dst to be scaled as well,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19847