diff options
author | jsorg71 <jsorg71> | 2006-11-05 07:56:16 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-11-05 07:56:16 +0000 |
commit | c127c2b2a4bff813347181a77657edaacc445c78 (patch) | |
tree | 14ec3ac142b457ebeadf2361ecccf79e6d790d73 /Xserver | |
parent | 00d8b7106f8b25f313af03c7ef9949873071a6b8 (diff) | |
download | xrdp-proprietary-c127c2b2a4bff813347181a77657edaacc445c78.tar.gz xrdp-proprietary-c127c2b2a4bff813347181a77657edaacc445c78.zip |
big endian fix for mouse cursor
Diffstat (limited to 'Xserver')
-rw-r--r-- | Xserver/hw/rdp/rdpinput.c | 7 |
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; } |