summaryrefslogtreecommitdiffstats
path: root/karbon
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-04-16 10:49:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-04-17 09:08:25 +0900
commit72ca29618e709e731d73ecaf8f550144614b876a (patch)
tree36a9476bb7b8c3cf0552c82ba92e32c3dd4cc0fc /karbon
parent0946bf474f5af9aa5f6fc9ec6b5d345729de71a8 (diff)
downloadkoffice-72ca29618e709e731d73ecaf8f550144614b876a.tar.gz
koffice-72ca29618e709e731d73ecaf8f550144614b876a.zip
Fix FTBFS reported in issue #67r14.1.2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 24920570b11e0c849464e9049e609e2438804276)
Diffstat (limited to 'karbon')
-rw-r--r--karbon/render/xrgbrender/gdk-pixbuf-xlib-drawable.c8
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;