diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-04-28 12:15:24 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-20 15:25:42 +0100 |
commit | 9d2e9eb1907504f9fbb81963f070e76f743df928 (patch) | |
tree | de72240d183729b4393a3b52adfad3f04cf4dc7b /python_modules/spice_parser.py | |
parent | b8da4097b1c5a37174eefa689e21dd7487e22f8c (diff) | |
download | spice-common-9d2e9eb1907504f9fbb81963f070e76f743df928.tar.gz spice-common-9d2e9eb1907504f9fbb81963f070e76f743df928.tar.xz spice-common-9d2e9eb1907504f9fbb81963f070e76f743df928.zip |
Clear alpha in xRGB destination to avoid pixman setting it to 0xff
Pixman sometimes sets the ignored high byte to 0xff during alpha
blending. This is correct according to pixman specs, as the high
byte is ignored. However its not what windows expects, and it causes
unnecessary regions with non-zero high byte, causing us to
send rgba data instead of rgb which compresses worse.
So, we detect this and clear the high byte.
Diffstat (limited to 'python_modules/spice_parser.py')
0 files changed, 0 insertions, 0 deletions