vnc: tight: don't forget last pixel in tight_encode_indexed_rect
commit54d43eacc5ca300d5a5ce5a83abe75e0167946b5
authorCorentin Chary <corentincj@iksaif.net>
Tue, 1 Jun 2010 21:05:42 +0000 (1 23:05 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Jun 2010 21:15:51 +0000 (1 16:15 -0500)
tree5199251812ee587f82015ffbe0dfa6e5cf041713
parent637503d122eb7656d91a8489e254d9e880be7504
vnc: tight: don't forget last pixel in tight_encode_indexed_rect

A simple patch would have been to just remove count -= 1, but this
one also replace the while (count--) with a for(i = 0; i < count; i++)
which I believe is more easy to understand.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc-encoding-tight.c