]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
Fix VNC update regoin height.
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 25 May 2008 00:38:47 +0000 (00:38 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 25 May 2008 00:38:47 +0000 (00:38 +0000)
'h' actually is the coordinate of bottom of the rectangle and not height.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4571 c046a42c-6fe2-441c-8c8c-71466251a162

vnc.c

diff --git a/vnc.c b/vnc.c
index 423544287a44f803d8e65270172e51d29f3a93e4..75e4c0c09382cf20ceb774c6d6ec12f5263957db 100644 (file)
--- a/vnc.c
+++ b/vnc.c
@@ -268,7 +268,7 @@ static void vnc_dpy_update(DisplayState *ds, int x, int y, int w, int h)
     x = MIN(x, vs->width);
     y = MIN(y, vs->height);
     w = MIN(x + w, vs->width) - x;
-    h = MIN(y + h, vs->height) - y;
+    h = MIN(h, vs->height);
 
     for (; y < h; y++)
        for (i = 0; i < w; i += 16)