This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] commited image processing fix for BE machine
- From: "Andreas Tobler" <toa at pop dot agri dot ch>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 23 Sep 2004 10:37:03 +0200
- Subject: [patch] commited image processing fix for BE machine
Hi all,
I committed this patch also to the gui branch. Tested with compilation only.
Andreas
2004-09-23 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Introduce AC_C_BIGENDIAN_CROSS for WORDS_BIGENDIAN.
* configure: Regenerate.
* include/config.h.in: Likewise.
* jni/gtk-peer/gtkpeer.h (SWAPU32): Introduce macro to swap pixels.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImagePainter.c: Moved SWAPU32
macro to gtkpeer.h.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_getImagePixels): Convert
pixels from 0xBBGGRRAA to 0xAARRGGBB only on Little Endian
architectures.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c (area_updated):
Likewise.