diff options
Diffstat (limited to 'krfb/libvncserver/tight.c')
-rw-r--r-- | krfb/libvncserver/tight.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/krfb/libvncserver/tight.c b/krfb/libvncserver/tight.c index bef8f825..9dd743ac 100644 --- a/krfb/libvncserver/tight.c +++ b/krfb/libvncserver/tight.c @@ -1239,7 +1239,7 @@ EncodeMonoRect##bpp(buf, w, h) \ { \ CARD##bpp *ptr; \ CARD##bpp bg; \ - unsigned int value, tqmask; \ + unsigned int value, mask; \ int aligned_width; \ int x, y, bg_bits; \ \ @@ -1257,27 +1257,27 @@ EncodeMonoRect##bpp(buf, w, h) \ *buf++ = 0; \ continue; \ } \ - tqmask = 0x80 >> bg_bits; \ - value = tqmask; \ + mask = 0x80 >> bg_bits; \ + value = mask; \ for (bg_bits++; bg_bits < 8; bg_bits++) { \ - tqmask >>= 1; \ + mask >>= 1; \ if (*ptr++ != bg) { \ - value |= tqmask; \ + value |= mask; \ } \ } \ *buf++ = (CARD8)value; \ } \ \ - tqmask = 0x80; \ + mask = 0x80; \ value = 0; \ if (x >= w) \ continue; \ \ for (; x < w; x++) { \ if (*ptr++ != bg) { \ - value |= tqmask; \ + value |= mask; \ } \ - tqmask >>= 1; \ + mask >>= 1; \ } \ *buf++ = (CARD8)value; \ } \ |