aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2010-07-07 20:57:54 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-07-26 17:36:14 -0500
commit5d8efe39a2e2f9479da1aefefa7325a1e7cb630b (patch)
treed93e10e842a278ada0b7c5460d56cce34aa32f2e /ui
parent245f7b51c0ea04fb2224b1127430a096c91aee70 (diff)
downloadqemu-5d8efe39a2e2f9479da1aefefa7325a1e7cb630b.zip
qemu-5d8efe39a2e2f9479da1aefefa7325a1e7cb630b.tar.gz
qemu-5d8efe39a2e2f9479da1aefefa7325a1e7cb630b.tar.bz2
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>
Diffstat (limited to 'ui')
-rw-r--r--ui/vnc-enc-tight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c
index 358221d..ade8e5f 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]; \
} \
} \
\