Module: wine Branch: master Commit: 6ef5ccb90e84dcfbfff9e645e5c24e40542b1888 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ef5ccb90e84dcfbfff9e645e5...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Apr 16 16:23:59 2010 +0200
winex11: Fix 16-bpp cursor conversions.
---
dlls/winex11.drv/mouse.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 60351e5..211edfb 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -538,7 +538,7 @@ static XcursorImage *create_cursor_image( CURSORICONINFO *ptr ) tmp = (*xor_ptr++ & 0xe0) >> 5; tmp |= (*xor_ptr & 0x07) << 3; *pixel_ptr |= convert_6to8[tmp] << 16; - *pixel_ptr |= convert_5to8[*xor_ptr & 0xf8] << 24; + *pixel_ptr |= convert_5to8[*xor_ptr++ >> 3] << 24; break;
case 1: