From 6cd859aa8a7fb60fe6edb89e628cddfe25dfe186 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Wed, 8 Jan 2014 10:08:34 +0100 Subject: [PATCH] ui/vnc: derive cmp_bytes from VNC_DIRTY_PIXELS_PER_BIT this allows for setting VNC_DIRTY_PIXELS_PER_BIT to different values than 16 if desired. Reviewed-by: Wenchao Xia Signed-off-by: Peter Lieven Signed-off-by: Gerd Hoffmann --- ui/vnc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/vnc.c b/ui/vnc.c index 54e97a499a..9a64f4b3fc 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -2679,7 +2679,7 @@ static int vnc_refresh_server_surface(VncDisplay *vd) * Check and copy modified bits from guest to server surface. * Update server dirty map. */ - cmp_bytes = 64; + cmp_bytes = VNC_DIRTY_PIXELS_PER_BIT * VNC_SERVER_FB_BYTES; if (cmp_bytes > vnc_server_fb_stride(vd)) { cmp_bytes = vnc_server_fb_stride(vd); } -- GitLab