diff options
author | Corentin Chary <corentincj@iksaif.net> | 2010-07-07 20:57:54 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-07-26 17:36:14 -0500 |
commit | 5d8efe39a2e2f9479da1aefefa7325a1e7cb630b (patch) | |
tree | d93e10e842a278ada0b7c5460d56cce34aa32f2e | |
parent | 245f7b51c0ea04fb2224b1127430a096c91aee70 (diff) | |
download | qemu-5d8efe39a2e2f9479da1aefefa7325a1e7cb630b.tar.gz qemu-5d8efe39a2e2f9479da1aefefa7325a1e7cb630b.tar.bz2 qemu-5d8efe39a2e2f9479da1aefefa7325a1e7cb630b.zip |
vnc: tight: don't forget do at the last color
While using indexed colors, the last color was never added to the palette.
Triggered with ubuntu livecd.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | ui/vnc-enc-tight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 358221dc06..ade8e5f846 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -393,11 +393,11 @@ static int tight_palette_insert(QDict *palette, uint32_t rgb, int bpp, int max) if (data[i] == ci) { \ continue; \ } else { \ + ci = data[i]; \ if (!tight_palette_insert(*palette, (uint32_t)ci, \ bpp, max)) { \ return 0; \ } \ - ci = data[i]; \ } \ } \ \ |