[PATCH RFC xserver] dix: Work around non-premultiplied ARGB cursor data
Alexander E. Patrakov
patrakov at gmail.com
Tue Jun 28 09:50:38 UTC 2016
28.06.2016 13:22, Michel Dänzer пишет:
> 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.
I think that, if we want to check for pixel values that are clearly
incompatible with premultiplied alpha, a better test would be to see if
any non-alpha component is greater than the corresponding alpha, instead
of limiting it to alpha == 0. Does it make sense?
--
Alexander E. Patrakov
More information about the xorg-devel
mailing list