projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f074f99
)
vnc: tight: don't forget the third color
author
Corentin Chary
<corentincj@iksaif.net>
Tue, 1 Jun 2010 21:05:43 +0000
(23:05 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Tue, 1 Jun 2010 21:15:51 +0000
(16:15 -0500)
While couting color, if the third color was only present one
time it wasn't added to the palette.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc-encoding-tight.c
patch
|
blob
|
history
diff --git
a/vnc-encoding-tight.c
b/vnc-encoding-tight.c
index
7bde44d
..
e8604a8
100644
(file)
--- a/
vnc-encoding-tight.c
+++ b/
vnc-encoding-tight.c
@@
-177,6
+177,7
@@
static int tight_palette_insert(QDict *palette, uint32_t rgb, int bpp, int max)
*palette = qdict_new(); \
tight_palette_insert(*palette, c0, bpp, max); \
tight_palette_insert(*palette, c1, bpp, max); \
+ tight_palette_insert(*palette, ci, bpp, max); \
\
for (i++; i < count; i++) { \
if (data[i] == ci) { \