diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-04-16 10:49:44 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-04-16 18:54:09 +0900 |
commit | 24920570b11e0c849464e9049e609e2438804276 (patch) | |
tree | 8fa02a70bb120d7023ccf622bc9ceea169077fb4 /karbon/render/xrgbrender/gdk-pixbuf-xlib-drawable.c | |
parent | 7c63535e7713ef762536d580e49e7af4881d47c5 (diff) | |
download | koffice-24920570b11e0c849464e9049e609e2438804276.tar.gz koffice-24920570b11e0c849464e9049e609e2438804276.zip |
Fix FTBFS reported in issue #67
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'karbon/render/xrgbrender/gdk-pixbuf-xlib-drawable.c')
-rw-r--r-- | karbon/render/xrgbrender/gdk-pixbuf-xlib-drawable.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/karbon/render/xrgbrender/gdk-pixbuf-xlib-drawable.c b/karbon/render/xrgbrender/gdk-pixbuf-xlib-drawable.c index e9ac4c9b..05e42f7b 100644 --- a/karbon/render/xrgbrender/gdk-pixbuf-xlib-drawable.c +++ b/karbon/render/xrgbrender/gdk-pixbuf-xlib-drawable.c @@ -518,7 +518,11 @@ rgb565amsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap * bpl = image->bytes_per_line; for (yy = 0; yy < height; yy++) { +#ifdef LITTLE s = srow; +#else + s = (unsigned short *) srow; +#endif o = (unsigned int *) orow; for (xx = 0; xx < width; xx ++) { unsigned int data; @@ -641,7 +645,11 @@ rgb555msb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c bpl = image->bytes_per_line; for (yy = 0; yy < height; yy++) { +#ifdef LITTLE s = srow; +#else + s = (unsigned int *) srow; +#endif o = (unsigned short *) orow; for (xx = 1; xx < width; xx += 2) { unsigned int data; |