From 6ef5ccb90e84dcfbfff9e645e5c24e40542b1888 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 16 Apr 2010 16:23:59 +0200 Subject: [PATCH] winex11: Fix 16-bpp cursor conversions. --- dlls/winex11.drv/mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 60351e53a0..211edfb8e2 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: