From c894806ee9751685cefd5604973d303d8dae4df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Mon, 22 Aug 2011 16:10:08 -0400 Subject: [PATCH] xfreerdp: fix off-by-one error in visibility rectangles --- client/X11/xf_window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/X11/xf_window.c b/client/X11/xf_window.c index 847079bd9..057e6c1db 100644 --- a/client/X11/xf_window.c +++ b/client/X11/xf_window.c @@ -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);