Only update destination rect for SurfaceToSurface and SurfaceToCache

This commit is contained in:
akallabeth 2021-01-25 12:00:05 +01:00 committed by akallabeth
parent 5176836517
commit da938a6514
1 changed files with 2 additions and 8 deletions

View File

@ -1159,10 +1159,7 @@ static UINT gdi_SurfaceToSurface(RdpgfxClientContext* context,
rectSrc->top, NULL, FREERDP_FLIP_NONE))
goto fail;
invalidRect.left = destPt->x;
invalidRect.top = destPt->y;
invalidRect.right = destPt->x + rectSrc->right;
invalidRect.bottom = destPt->y + rectSrc->bottom;
invalidRect = rect;
region16_union_rect(&surfaceDst->invalidRegion, &surfaceDst->invalidRegion, &invalidRect);
status = IFCALLRESULT(CHANNEL_RC_OK, context->UpdateSurfaceArea, context,
surfaceDst->surfaceId, 1, &invalidRect);
@ -1275,10 +1272,7 @@ static UINT gdi_CacheToSurface(RdpgfxClientContext* context,
FREERDP_FLIP_NONE))
goto fail;
invalidRect.left = destPt->x;
invalidRect.top = destPt->y;
invalidRect.right = destPt->x + cacheEntry->width;
invalidRect.bottom = destPt->y + cacheEntry->height;
invalidRect = rect;
region16_union_rect(&surface->invalidRegion, &surface->invalidRegion, &invalidRect);
status = IFCALLRESULT(CHANNEL_RC_OK, context->UpdateSurfaceArea, context,
surface->surfaceId, 1, &invalidRect);