diff options
author | Corentin Chary <corentincj@iksaif.net> | 2010-06-01 23:05:43 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-06-01 16:15:51 -0500 |
commit | 270ec21929b029e6cca27656fcbf1c775e42f6d7 (patch) | |
tree | 119e060a879dcf3abbbf61389f6c939629d9250b /vnc-encoding-tight.c | |
parent | 54d43eacc5ca300d5a5ce5a83abe75e0167946b5 (diff) |
vnc: tight: don't forget the third color
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>
Diffstat (limited to 'vnc-encoding-tight.c')
-rw-r--r-- | vnc-encoding-tight.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vnc-encoding-tight.c b/vnc-encoding-tight.c index 7bde44db0a..e8604a85a9 100644 --- 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) { \ |