diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-25 00:38:47 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-25 00:38:47 +0000 |
commit | 731dd637c2e84d5c09467abff526a17392f86102 (patch) | |
tree | 0eeaabab12c58d3a308329f0256b370e6c0c8d80 /vnc.c | |
parent | 9b7b85d26006af61b69dbabe2354d73a8c67cc6c (diff) | |
download | qemu-731dd637c2e84d5c09467abff526a17392f86102.tar.gz qemu-731dd637c2e84d5c09467abff526a17392f86102.tar.bz2 qemu-731dd637c2e84d5c09467abff526a17392f86102.zip |
Fix VNC update regoin height.
'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
Diffstat (limited to 'vnc.c')
-rw-r--r-- | vnc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |