Re: [5/5] winex11.drv: Fix color conversion for 16 bpp cursors.
10 Dec
2008
10 Dec
'08
4:32 a.m.
Henri Verbeet <hverbeet(a)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(a)winehq.org
6302
Age (days ago)
6302
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard