Commit 06884f05 authored by Matt Wilson's avatar Matt Wilson Committed by Matt Wilson
Browse files

s/unsigned long/guint32/g, s/unsigned short/guint16/g, s/unsigned

2000-02-28  Matt Wilson  <msw@redhat.com>

	* gdk-pixbuf/gdk-pixbuf-drawable.c: s/unsigned long/guint32/g,
	s/unsigned short/guint16/g, s/unsigned char/guint8/g
parent de9fb931
2000-02-28 Matt Wilson <msw@redhat.com>
* gdk-pixbuf/gdk-pixbuf-drawable.c: s/unsigned long/guint32/g,
s/unsigned short/guint16/g, s/unsigned char/guint8/g
2000-02-26 Federico Mena Quintero <federico@helixcode.com> 2000-02-26 Federico Mena Quintero <federico@helixcode.com>
* README: We don't require libgif/ungif nor libXpm. * README: We don't require libgif/ungif nor libXpm.
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
static unsigned long mask_table[] = { static guint32 mask_table[] = {
0x00000000, 0x00000001, 0x00000003, 0x00000007, 0x00000000, 0x00000001, 0x00000003, 0x00000007,
0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f,
0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff, 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff,
...@@ -59,10 +59,10 @@ rgb1 (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap) ...@@ -59,10 +59,10 @@ rgb1 (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap)
int xx, yy; int xx, yy;
int width, height; int width, height;
int bpl; int bpl;
unsigned char *s; guint8 *s;
register unsigned char data; register guint8 data;
unsigned char *o; guint8 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
d (printf ("1 bits/pixel\n")); d (printf ("1 bits/pixel\n"));
...@@ -98,11 +98,11 @@ rgb1a (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap) ...@@ -98,11 +98,11 @@ rgb1a (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap)
int xx, yy; int xx, yy;
int width, height; int width, height;
int bpl; int bpl;
unsigned char *s; guint8 *s;
register unsigned char data; register guint8 data;
unsigned char *o; guint8 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
unsigned long remap[2]; guint32 remap[2];
d (printf ("1 bits/pixel\n")); d (printf ("1 bits/pixel\n"));
...@@ -150,11 +150,11 @@ rgb8 (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap) ...@@ -150,11 +150,11 @@ rgb8 (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap)
int xx, yy; int xx, yy;
int width, height; int width, height;
int bpl; int bpl;
unsigned long mask; guint32 mask;
register unsigned long data; register guint32 data;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
register unsigned char *s; register guint8 *s;
register unsigned char *o; register guint8 *o;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -188,12 +188,12 @@ rgb8a (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap) ...@@ -188,12 +188,12 @@ rgb8a (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap)
int xx, yy; int xx, yy;
int width, height; int width, height;
int bpl; int bpl;
unsigned long mask; guint32 mask;
register unsigned long data; register guint32 data;
unsigned long remap[256]; guint32 remap[256];
register unsigned char *s; /* read 2 pixels at once */ register guint8 *s; /* read 2 pixels at once */
register unsigned long *o; register guint32 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -219,7 +219,7 @@ rgb8a (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap) ...@@ -219,7 +219,7 @@ rgb8a (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap)
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
s = srow; s = srow;
o = (unsigned long *) orow; o = (guint32 *) orow;
for (xx = 0; xx < width; xx ++) { for (xx = 0; xx < width; xx ++) {
data = *s++ & mask; data = *s++ & mask;
*o++ = remap[data]; *o++ = remap[data];
...@@ -242,12 +242,12 @@ rgb565lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -242,12 +242,12 @@ rgb565lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
int bpl; int bpl;
#ifdef LITTLE #ifdef LITTLE
register unsigned long *s; /* read 2 pixels at once */ register guint32 *s; /* read 2 pixels at once */
#else #else
register unsigned char *s; /* read 2 pixels at once */ register guint8 *s; /* read 2 pixels at once */
#endif #endif
register unsigned short *o; register guint16 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -255,13 +255,13 @@ rgb565lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -255,13 +255,13 @@ rgb565lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
#ifdef LITTLE #ifdef LITTLE
s = (unsigned long *) srow; s = (guint32 *) srow;
#else #else
s = (unsigned char *) srow; s = (guint32 *) srow;
#endif #endif
o = (unsigned short *) orow; o = (guint16 *) orow;
for (xx = 1; xx < width; xx += 2) { for (xx = 1; xx < width; xx += 2) {
register unsigned long data; register guint32 data;
#ifdef LITTLE #ifdef LITTLE
data = *s++; data = *s++;
*o++ = (data & 0xf800) >> 8 | (data & 0x7e0) << 5; *o++ = (data & 0xf800) >> 8 | (data & 0x7e0) << 5;
...@@ -278,7 +278,7 @@ rgb565lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -278,7 +278,7 @@ rgb565lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
} }
/* check for last remaining pixel */ /* check for last remaining pixel */
if (width & 1) { if (width & 1) {
register unsigned short data; register guint16 data;
#ifdef LITTLE #ifdef LITTLE
data = *((short *) s); data = *((short *) s);
#else #else
...@@ -307,12 +307,12 @@ rgb565msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -307,12 +307,12 @@ rgb565msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
int bpl; int bpl;
#ifdef LITTLE #ifdef LITTLE
register unsigned char *s; /* need to swap data order */ register guint8 *s; /* need to swap data order */
#else #else
register unsigned long *s; /* read 2 pixels at once */ register guint32 *s; /* read 2 pixels at once */
#endif #endif
register unsigned short *o; register guint16 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -322,11 +322,11 @@ rgb565msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -322,11 +322,11 @@ rgb565msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
#ifdef LITTLE #ifdef LITTLE
s = srow; s = srow;
#else #else
s = (unsigned long *) srow; s = (guint32 *) srow;
#endif #endif
o = (unsigned short *) orow; o = (guint16 *) orow;
for (xx = 1; xx < width; xx += 2) { for (xx = 1; xx < width; xx += 2) {
register unsigned long data; register guint32 data;
#ifdef LITTLE #ifdef LITTLE
/* swap endianness first */ /* swap endianness first */
data = s[0] | s[1] << 8 | s[2] << 16 | s[3] << 24; data = s[0] | s[1] << 8 | s[2] << 16 | s[3] << 24;
...@@ -343,7 +343,7 @@ rgb565msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -343,7 +343,7 @@ rgb565msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
} }
/* check for last remaining pixel */ /* check for last remaining pixel */
if (width & 1) { if (width & 1) {
register unsigned short data; register guint16 data;
#ifdef LITTLE #ifdef LITTLE
data = *((short *) s); data = *((short *) s);
data = ((data >> 8) & 0xff) | ((data & 0xff) << 8); data = ((data >> 8) & 0xff) | ((data & 0xff) << 8);
...@@ -372,13 +372,13 @@ rgb565alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -372,13 +372,13 @@ rgb565alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
int bpl; int bpl;
#ifdef LITTLE #ifdef LITTLE
register unsigned short *s; /* read 1 pixels at once */ register guint16 *s; /* read 1 pixels at once */
#else #else
register unsigned char *s; register guint8 *s;
#endif #endif
register unsigned long *o; register guint32 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -386,13 +386,13 @@ rgb565alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -386,13 +386,13 @@ rgb565alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
#ifdef LITTLE #ifdef LITTLE
s = (unsigned short *) srow; s = (guint16 *) srow;
#else #else
s = (unsigned char *) srow; s = (guint8 *) srow;
#endif #endif
o = (unsigned long *) orow; o = (guint32 *) orow;
for (xx = 0; xx < width; xx ++) { for (xx = 0; xx < width; xx ++) {
register unsigned long data; register guint32 data;
/* rrrrrggg gggbbbbb -> rrrrr000 gggggg00 bbbbb000 aaaaaaaa */ /* rrrrrggg gggbbbbb -> rrrrr000 gggggg00 bbbbb000 aaaaaaaa */
/* little endian: aaaaaaaa bbbbb000 gggggg00 rrrrr000 */ /* little endian: aaaaaaaa bbbbb000 gggggg00 rrrrr000 */
#ifdef LITTLE #ifdef LITTLE
...@@ -425,13 +425,13 @@ rgb565amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -425,13 +425,13 @@ rgb565amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
int bpl; int bpl;
#ifdef LITTLE #ifdef LITTLE
register unsigned char *s; register guint8 *s;
#else #else
register unsigned short *s; /* read 1 pixels at once */ register guint16 *s; /* read 1 pixels at once */
#endif #endif
register unsigned long *o; register guint32 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -439,9 +439,9 @@ rgb565amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -439,9 +439,9 @@ rgb565amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
s = srow; s = srow;
o = (unsigned long *) orow; o = (guint32 *) orow;
for (xx = 0; xx < width; xx ++) { for (xx = 0; xx < width; xx ++) {
register unsigned long data; register guint32 data;
/* rrrrrggg gggbbbbb -> rrrrr000 gggggg00 bbbbb000 aaaaaaaa */ /* rrrrrggg gggbbbbb -> rrrrr000 gggggg00 bbbbb000 aaaaaaaa */
/* little endian: aaaaaaaa bbbbb000 gggggg00 rrrrr000 */ /* little endian: aaaaaaaa bbbbb000 gggggg00 rrrrr000 */
#ifdef LITTLE #ifdef LITTLE
...@@ -474,12 +474,12 @@ rgb555lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -474,12 +474,12 @@ rgb555lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
int bpl; int bpl;
#ifdef LITTLE #ifdef LITTLE
register unsigned long *s; /* read 2 pixels at once */ register guint32 *s; /* read 2 pixels at once */
#else #else
register unsigned char *s; /* read 2 pixels at once */ register guint8 *s; /* read 2 pixels at once */
#endif #endif
register unsigned short *o; register guint16 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -487,13 +487,13 @@ rgb555lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -487,13 +487,13 @@ rgb555lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
#ifdef LITTLE #ifdef LITTLE
s = (unsigned long *) srow; s = (guint32 *) srow;
#else #else
s = srow; s = srow;
#endif #endif
o = (unsigned short *) orow; o = (guint16 *) orow;
for (xx = 1; xx < width; xx += 2) { for (xx = 1; xx < width; xx += 2) {
register unsigned long data; register guint32 data;
#ifdef LITTLE #ifdef LITTLE
data = *s++; data = *s++;
*o++ = (data & 0x7c00) >> 7 | (data & 0x3e0) << 6; *o++ = (data & 0x7c00) >> 7 | (data & 0x3e0) << 6;
...@@ -510,7 +510,7 @@ rgb555lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -510,7 +510,7 @@ rgb555lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
} }
/* check for last remaining pixel */ /* check for last remaining pixel */
if (width & 1) { if (width & 1) {
register unsigned short data; register guint16 data;
#ifdef LITTLE #ifdef LITTLE
data = *((short *) s); data = *((short *) s);
#else #else
...@@ -539,12 +539,12 @@ rgb555msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -539,12 +539,12 @@ rgb555msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
int bpl; int bpl;
#ifdef LITTLE #ifdef LITTLE
register unsigned char *s; /* read 2 pixels at once */ register guint8 *s; /* read 2 pixels at once */
#else #else
register unsigned long *s; /* read 2 pixels at once */ register guint32 *s; /* read 2 pixels at once */
#endif #endif
register unsigned short *o; register guint16 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -552,9 +552,9 @@ rgb555msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -552,9 +552,9 @@ rgb555msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
s = srow; s = srow;
o = (unsigned short *) orow; o = (guint16 *) orow;
for (xx = 1; xx < width; xx += 2) { for (xx = 1; xx < width; xx += 2) {
register unsigned long data; register guint32 data;
#ifdef LITTLE #ifdef LITTLE
/* swap endianness first */ /* swap endianness first */
data = s[0] | s[1] << 8 | s[2] << 16 | s[3] << 24; data = s[0] | s[1] << 8 | s[2] << 16 | s[3] << 24;
...@@ -571,7 +571,7 @@ rgb555msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -571,7 +571,7 @@ rgb555msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
} }
/* check for last remaining pixel */ /* check for last remaining pixel */
if (width & 1) { if (width & 1) {
register unsigned short data; register guint16 data;
#ifdef LITTLE #ifdef LITTLE
data = *((short *) s); data = *((short *) s);
data = ((data >> 8) & 0xff) | ((data & 0xff) << 8); data = ((data >> 8) & 0xff) | ((data & 0xff) << 8);
...@@ -600,13 +600,13 @@ rgb555alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -600,13 +600,13 @@ rgb555alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
int bpl; int bpl;
#ifdef LITTLE #ifdef LITTLE
register unsigned short *s; /* read 1 pixels at once */ register guint16 *s; /* read 1 pixels at once */
#else #else
register unsigned char *s; register guint8 *s;
#endif #endif
register unsigned long *o; register guint32 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -614,13 +614,13 @@ rgb555alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -614,13 +614,13 @@ rgb555alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
#ifdef LITTLE #ifdef LITTLE
s = (unsigned short *) srow; s = (guint16 *) srow;
#else #else
s = srow; s = srow;
#endif #endif
o = (unsigned long *) orow; o = (guint32 *) orow;
for (xx = 0; xx < width; xx++) { for (xx = 0; xx < width; xx++) {
register unsigned long data; register guint32 data;
/* rrrrrggg gggbbbbb -> rrrrr000 gggggg00 bbbbb000 aaaaaaaa */ /* rrrrrggg gggbbbbb -> rrrrr000 gggggg00 bbbbb000 aaaaaaaa */
/* little endian: aaaaaaaa bbbbb000 gggggg00 rrrrr000 */ /* little endian: aaaaaaaa bbbbb000 gggggg00 rrrrr000 */
#ifdef LITTLE #ifdef LITTLE
...@@ -653,13 +653,13 @@ rgb555amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -653,13 +653,13 @@ rgb555amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
int bpl; int bpl;
#ifdef LITTLE #ifdef LITTLE
register unsigned short *s; /* read 1 pixels at once */ register guint16 *s; /* read 1 pixels at once */
#else #else
register unsigned char *s; register guint8 *s;
#endif #endif
register unsigned long *o; register guint32 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -667,13 +667,13 @@ rgb555amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -667,13 +667,13 @@ rgb555amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
#ifdef LITTLE #ifdef LITTLE
s = (unsigned short *) srow; s = (guint16 *) srow;
#else #else
s = srow; s = srow;
#endif #endif
o = (unsigned long *) orow; o = (guint32 *) orow;
for (xx = 0; xx < width; xx++) { for (xx = 0; xx < width; xx++) {
register unsigned long data; register guint32 data;
/* rrrrrggg gggbbbbb -> rrrrr000 gggggg00 bbbbb000 aaaaaaaa */ /* rrrrrggg gggbbbbb -> rrrrr000 gggggg00 bbbbb000 aaaaaaaa */
/* little endian: aaaaaaaa bbbbb000 gggggg00 rrrrr000 */ /* little endian: aaaaaaaa bbbbb000 gggggg00 rrrrr000 */
#ifdef LITTLE #ifdef LITTLE
...@@ -701,9 +701,9 @@ rgb888alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -701,9 +701,9 @@ rgb888alsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
int width, height; int width, height;
int bpl; int bpl;
unsigned char *s; /* for byte order swapping */ guint8 *s; /* for byte order swapping */
unsigned char *o; guint8 *o;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -734,8 +734,8 @@ rgb888lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -734,8 +734,8 @@ rgb888lsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
int width, height; int width, height;
int bpl; int bpl;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
unsigned char *o, *s; guint8 *o, *s;
width = image->width; width = image->width;
height = image->height; height = image->height;
...@@ -764,13 +764,13 @@ rgb888amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -764,13 +764,13 @@ rgb888amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
int width, height; int width, height;
int bpl; int bpl;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
#ifdef LITTLE #ifdef LITTLE
unsigned long *o; guint32 *o;
unsigned long *s; guint32 *s;
#else #else
unsigned char *s; /* for byte order swapping */ guint8 *s; /* for byte order swapping */
unsigned char *o; guint8 *o;
#endif #endif
d (printf ("32 bit, msb, with alpha\n")); d (printf ("32 bit, msb, with alpha\n"));
...@@ -782,8 +782,8 @@ rgb888amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma ...@@ -782,8 +782,8 @@ rgb888amsb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colorma
/* msb data */ /* msb data */
for (yy = 0; yy < height; yy++) { for (yy = 0; yy < height; yy++) {
#ifdef LITTLE #ifdef LITTLE
s = (unsigned long *) srow; s = (guint32 *) srow;
o = (unsigned long *) orow; o = (guint32 *) orow;
#else #else
s = srow; s = srow;
o = orow; o = orow;
...@@ -812,9 +812,9 @@ rgb888msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap ...@@ -812,9 +812,9 @@ rgb888msb (GdkImage *image, art_u8 *pixels, int rowstride, GdkColormap *colormap
int width, height; int width, height;
int bpl; int bpl;
unsigned char *srow = image->mem, *orow = pixels; guint8 *srow = image->mem, *orow = pixels;
unsigned char *s; guint8 *s;
unsigned