Files
xserver/dix
Michel Dänzer b45c74f0f2 dix: Work around non-premultiplied ARGB cursor data harder
Turns out some apps (e.g. the Civilization VI game) use
non-premultiplied cursor data which doesn't have any pixels with 0 alpha
but non-0 non-alpha, but can still result in visual artifacts.

This uses the method suggested by Kamil in
https://bugs.freedesktop.org/92309#c19: check for pixels where any
colour component value is larger than the alpha value, which isn't
possible with premultiplied alpha.

There can still be non-premultiplied data which won't be caught by this,
but that should result in slightly incorrect colours and/or blending at
the worst, not wildly incorrect colours such as shown in the bug report
below.

Bugzilla: https://bugs.freedesktop.org/108355
Suggested-by: Kamil Paral <kamil.paral@gmail.com>
2018-10-25 14:33:09 +00:00
..
2015-07-08 16:41:29 -04:00
2014-11-12 10:25:00 +10:00
2017-10-30 13:45:20 -04:00
2015-04-21 16:57:07 -07:00
2018-09-28 16:25:17 -04:00
2018-09-12 19:31:07 +00:00
2017-11-06 17:22:46 -05:00
2018-03-27 10:13:18 -04:00
2017-10-30 13:45:20 -04: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