aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/vnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/vnc.c b/ui/vnc.c
index 2f71769a91..14f2930d1a 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -1659,7 +1659,7 @@ static void framebuffer_update_request(VncState *vs, int incremental,
for (i = 0; i < h; i++) {
bitmap_set(vs->dirty[y_position + i], 0, width);
bitmap_clear(vs->dirty[y_position + i], width,
- VNC_DIRTY_WORDS * BITS_PER_LONG - width);
+ VNC_DIRTY_BITS - width);
}
}
}