summaryrefslogtreecommitdiffstats
path: root/x11vnc/pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/pointer.c')
-rw-r--r--x11vnc/pointer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/x11vnc/pointer.c b/x11vnc/pointer.c
index c57d2d7..f2995c3 100644
--- a/x11vnc/pointer.c
+++ b/x11vnc/pointer.c
@@ -620,24 +620,24 @@ static void pipe_pointer(int mask, int x, int y, rfbClientPtr client) {
if (mask == button_mask) {
strcat(hint, "None");
} else {
- int i, old, new, m = 1, cnt = 0;
+ int i, old, newb, m = 1, cnt = 0;
for (i=0; i<MAX_BUTTONS; i++) {
char s[20];
old = button_mask & m;
- new = mask & m;
+ newb = mask & m;
m = m << 1;
- if (old == new) {
+ if (old == newb) {
continue;
}
if (hint[0] != '\0') {
strcat(hint, ",");
}
- if (new && ! old) {
+ if (newb && ! old) {
sprintf(s, "ButtonPress-%d", i+1);
cnt++;
- } else if (! new && old) {
+ } else if (! newb && old) {
sprintf(s, "ButtonRelease-%d", i+1);
cnt++;
}