mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
make proper casts in big endian cases.
Sat Nov 27 15:18:14 2004 Manish Singh <yosh@gimp.org> * contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c (rgb565amsb, rgb555msb): make proper casts in big endian cases.
This commit is contained in:
parent
19463a9409
commit
79a042ab38
@ -1,3 +1,8 @@
|
||||
Sat Nov 27 15:18:14 2004 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||
(rgb565amsb, rgb555msb): make proper casts in big endian cases.
|
||||
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconview.c (gtk_icon_view_set_model): Check column types on the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Nov 27 15:18:14 2004 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||
(rgb565amsb, rgb555msb): make proper casts in big endian cases.
|
||||
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconview.c (gtk_icon_view_set_model): Check column types on the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Nov 27 15:18:14 2004 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||
(rgb565amsb, rgb555msb): make proper casts in big endian cases.
|
||||
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconview.c (gtk_icon_view_set_model): Check column types on the
|
||||
|
@ -1,3 +1,8 @@
|
||||
Sat Nov 27 15:18:14 2004 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c
|
||||
(rgb565amsb, rgb555msb): make proper casts in big endian cases.
|
||||
|
||||
2004-11-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconview.c (gtk_icon_view_set_model): Check column types on the
|
||||
|
@ -547,7 +547,11 @@ rgb565amsb (XImage *image, guchar *pixels, int rowstride, xlib_colormap *colorma
|
||||
bpl = image->bytes_per_line;
|
||||
|
||||
for (yy = 0; yy < height; yy++) {
|
||||
#ifdef LITTLE
|
||||
s = srow;
|
||||
#else
|
||||
s = (guint16 *) srow;
|
||||
#endif
|
||||
o = (guint32 *) orow;
|
||||
for (xx = 0; xx < width; xx ++) {
|
||||
register guint32 data;
|
||||
@ -670,7 +674,11 @@ rgb555msb (XImage *image, guchar *pixels, int rowstride, xlib_colormap *colormap
|
||||
bpl = image->bytes_per_line;
|
||||
|
||||
for (yy = 0; yy < height; yy++) {
|
||||
#ifdef LITTLE
|
||||
s = srow;
|
||||
#else
|
||||
s = (guint32 *) srow;
|
||||
#endif
|
||||
o = (guint16 *) orow;
|
||||
for (xx = 1; xx < width; xx += 2) {
|
||||
register guint32 data;
|
||||
|
Loading…
Reference in New Issue
Block a user