xfreerdp: fix off-by-one error in visibility rectangles

This commit is contained in:
Marc-André Moreau 2011-08-22 16:10:08 -04:00
parent 3e4331caa0
commit c894806ee9
1 changed files with 2 additions and 2 deletions

View File

@ -397,8 +397,8 @@ void xf_SetWindowVisibilityRects(xfInfo* xfi, xfWindow* window, RECTANGLE_16* re
{
xrects[i].x = rects[i].left;
xrects[i].y = rects[i].top;
xrects[i].width = rects[i].right - rects[i].left + 1;
xrects[i].height = rects[i].bottom - rects[i].top + 1;
xrects[i].width = rects[i].right - rects[i].left;
xrects[i].height = rects[i].bottom - rects[i].top;
}
XShapeCombineRectangles(xfi->display, window->handle, ShapeBounding, 0, 0, xrects, nrects, ShapeSet, 0);