summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-11-05 07:56:16 +0000
committerjsorg71 <jsorg71>2006-11-05 07:56:16 +0000
commitc127c2b2a4bff813347181a77657edaacc445c78 (patch)
tree14ec3ac142b457ebeadf2361ecccf79e6d790d73
parent00d8b7106f8b25f313af03c7ef9949873071a6b8 (diff)
downloadxrdp-proprietary-c127c2b2a4bff813347181a77657edaacc445c78.tar.gz
xrdp-proprietary-c127c2b2a4bff813347181a77657edaacc445c78.zip
big endian fix for mouse cursor
-rw-r--r--Xserver/hw/rdp/rdpinput.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Xserver/hw/rdp/rdpinput.c b/Xserver/hw/rdp/rdpinput.c
index 09b884db..65567f24 100644
--- a/Xserver/hw/rdp/rdpinput.c
+++ b/Xserver/hw/rdp/rdpinput.c
@@ -457,8 +457,13 @@ get_pixel_safe(char* data, int x, int y, int width, int height, int bpp)
start = (y * width) + x / 8;
shift = x % 8;
c = (unsigned char)(data[start]);
- /* todo LSBFirst */
+ /* todo, for now checking processor but is there a better way?
+ maybe LSBFirst */
+#if defined(__sparc__) || defined(__PPC__)
+ return (c & (0x80 >> shift)) != 0;
+#else
return (g_reverse_byte[c] & (0x80 >> shift)) != 0;
+#endif
}
return 0;
}