Files
xserver/dix
Michel Dänzer 401a8d6e13 dix: Work around non-premultiplied ARGB cursor data
Some games incorrectly use non-premultiplied ARGB cursor data, presumably
because that's what Windows uses. On some hardware (and with SWcursor),
this breaks areas of the cursor which are supposed to be transparent
(and presumably also translucent areas, but that's less noticeable).

This change checks for pixels with alpha == 0 and any non-alpha component
!= 0. If any such pixel is found, the data is assumed to be
non-premultiplied and fixed up by multiplying the RGB components with the
alpha component.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92309
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-07-15 09:53:07 -04:00
..
2015-07-08 16:41:29 -04:00
2003-11-14 16:49:22 +00:00
2003-11-14 15:54:54 +00:00
2016-05-26 16:07:54 -07:00
2014-11-12 10:25:00 +10:00
2012-03-21 13:54:42 -07:00
2014-11-12 10:25:00 +10:00
2015-11-24 11:36:34 +10:00
2015-04-21 16:57:07 -07:00
2015-11-24 11:36:32 +10:00
2013-07-23 23:56:58 +01:00
2016-05-26 16:07:54 -07:00
2013-07-23 23:56:58 +01:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00
2014-11-12 10:25:00 +10:00