[patch] image processing fix for BE machine
Andreas Tobler
toa@pop.agri.ch
Thu Sep 23 08:37:00 GMT 2004
Thomas Fitzsimmons wrote:
>>Shall I prepare a patch for gui-branch too ?
>>
>
>
> Yes, please.
Would look like this.
Untested.
Andreas
2004-09-22 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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gtk-gui.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040923/03f6180c/attachment.ksh>
More information about the Java-patches
mailing list