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