Commit 731dd637c2e84d5c09467abff526a17392f86102

Authored by balrog
1 parent 9b7b85d2

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
Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -268,7 +268,7 @@ static void vnc_dpy_update(DisplayState *ds, int x, int y, int w, int h)
268 268 x = MIN(x, vs->width);
269 269 y = MIN(y, vs->height);
270 270 w = MIN(x + w, vs->width) - x;
271   - h = MIN(y + h, vs->height) - y;
  271 + h = MIN(h, vs->height);
272 272  
273 273 for (; y < h; y++)
274 274 for (i = 0; i < w; i += 16)
... ...