diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-07 07:55:34 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-01-07 07:55:34 -0600 |
commit | 18cb1d85578e03b16570d9380309cca673f9fff8 (patch) | |
tree | d430c20249d14b1e3c2a71b05d3f18003bdf50a4 /vnchextile.h | |
parent | 561ef251e7896aa3c3abdab414dd154558d13d1a (diff) |
vnc: Fix artifacts in hextile decoding
02c2b87 introduced a regression whereas the foreground color in a hextile
update was not being properly invalidated leading to artifacts.
It's still necessary to explicitly invalidate the foreground color with a
SubrectColoured tile even though we no longer send a foreground color as
part of the tile.
Reported-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vnchextile.h')
-rw-r--r-- | vnchextile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnchextile.h b/vnchextile.h index 432ed89af4..78ed8c4e91 100644 --- a/vnchextile.h +++ b/vnchextile.h @@ -165,6 +165,8 @@ static void CONCAT(send_hextile_tile_, NAME)(VncState *vs, irow += ds_get_linesize(vs->ds) / sizeof(pixel_t); } + /* A SubrectsColoured subtile invalidates the foreground color */ + *has_fg = 0; if (n_data > (w * h * sizeof(pixel_t))) { n_colors = 4; flags = 0x01; |