Permalink
Browse files

a few fixes for 8bpp mode, should work now!

  • Loading branch information...
1 parent dabf429 commit bb2dfc38169a96cec4659a80df412de25ea69c6c @hwhw committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 kindlevncviewer.c
View
@@ -178,7 +178,7 @@ void rfb16ToFramebuffer8(int x, int y, int w, int h) {
+ ((v & 0x7C00) >> 10) // blue
) >> (2 /* from shifts above */ + 1 /* 5 -> 4 */ );
#endif
- *(dest+cx) = ((uint8_t)c << 4) + ((uint8_t)c & 0xF); /* repeat value in lower nibble */
+ *(dest+cx) = (((uint8_t)c << 4) + ((uint8_t)c & 0xF)) ^ 255; /* repeat value in lower nibble */
}
dest += finfo.line_length;
src += client->width;

0 comments on commit bb2dfc3

Please sign in to comment.