From 8d116e6ee92008dfd858a4ff56fe9b5c7d1f851c Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 31 Mar 2017 12:06:21 +0200 Subject: [PATCH] Use exclusive coordinates in CacheToSurface. --- libfreerdp/gdi/gfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/gdi/gfx.c b/libfreerdp/gdi/gfx.c index 49c96c20e..99f707926 100644 --- a/libfreerdp/gdi/gfx.c +++ b/libfreerdp/gdi/gfx.c @@ -979,8 +979,8 @@ static UINT gdi_CacheToSurface(RdpgfxClientContext* context, invalidRect.left = destPt->x; invalidRect.top = destPt->y; - invalidRect.right = destPt->x + cacheEntry->width - 1; - invalidRect.bottom = destPt->y + cacheEntry->height - 1; + invalidRect.right = destPt->x + cacheEntry->width; + invalidRect.bottom = destPt->y + cacheEntry->height; region16_union_rect(&surface->invalidRegion, &surface->invalidRegion, &invalidRect); }