[5/5] winex11.drv: Fix color conversion for 16 bpp cursors.
Alexandre Julliard
julliard at winehq.org
Wed Dec 10 04:32:25 CST 2008
Henri Verbeet <hverbeet at codeweavers.com> writes:
> case 16:
> - /* BGR, 5 red, 6 green, 5 blue */
> - *pixel_ptr = *xor_ptr * 0x1f;
> - *pixel_ptr |= (*xor_ptr & 0xe0) << 3;
> + /* [gggbbbbb][rrrrrggg] -> [xxxxxxxx][rrrrr000][gggggg00][bbbbb000] */
It seems to me that zero-padding isn't quite right, you should expand
the values linearly.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list