diff options
author | Manish Singh <yosh@gimp.org> | 2004-11-27 23:19:03 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2004-11-27 23:19:03 +0000 |
commit | 79a042ab38edcc6d19cf67b70f9f2e3f9d0e1d35 (patch) | |
tree | c4d3ba4aa1172b31aff8e123b50fb62dac508c62 /contrib | |
parent | 19463a94093d9d2a35891734160336696e9bd7ef (diff) | |
download | gdk-pixbuf-79a042ab38edcc6d19cf67b70f9f2e3f9d0e1d35.tar.gz |
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.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c index 2c8de405a..da9dae2f8 100644 --- a/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c +++ b/contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-drawable.c @@ -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; |