Fixed #7529: Adjust windows client update area

When scrollbars are used, the update area needs to be adjusted.
This commit is contained in:
Armin Novak 2022-01-10 12:22:18 +01:00 committed by akallabeth
parent 4b719df371
commit be5ace1123

View File

@ -117,6 +117,18 @@ static BOOL wf_end_paint(rdpContext* context)
updateRect.top = extents->top;
updateRect.right = extents->right;
updateRect.bottom = extents->bottom;
if (wfc->xScrollVisible)
{
updateRect.left -= MIN(updateRect.left, wfc->xCurrentScroll);
updateRect.right -= MIN(updateRect.right, wfc->xCurrentScroll);
}
if (wfc->yScrollVisible)
{
updateRect.top -= MIN(updateRect.top, wfc->yCurrentScroll);
updateRect.bottom -= MIN(updateRect.bottom, wfc->yCurrentScroll);
}
InvalidateRect(wfc->hwnd, &updateRect, FALSE);
if (wfc->rail)