mirror of https://github.com/FreeRDP/FreeRDP
Skip empty rectangles in gfx cache to surface
This commit is contained in:
parent
498635a317
commit
3eccf75aff
|
@ -1411,6 +1411,9 @@ static UINT gdi_CacheToSurface(RdpgfxClientContext* context,
|
|||
const RECTANGLE_16 rect = { destPt->x, destPt->y, destPt->x + cacheEntry->width,
|
||||
destPt->y + cacheEntry->height };
|
||||
|
||||
if (rectangle_is_empty(&rect))
|
||||
continue;
|
||||
|
||||
if (!is_rect_valid(&rect, surface->width, surface->height))
|
||||
goto fail;
|
||||
|
||||
|
|
Loading…
Reference in New Issue