Merge pull request #4200 from cedrozor/upstream-master

Windows client: refresh only updated region(s) instead of whole screen
This commit is contained in:
akallabeth 2017-11-06 10:22:37 +01:00 committed by GitHub
commit 6845974cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,10 +119,10 @@ static BOOL wf_begin_paint(rdpContext* context)
{
HGDI_DC hdc;
if (!context || !context->gdi || !context->gdi->hdc)
if (!context || !context->gdi || !context->gdi->primary || !context->gdi->primary->hdc)
return FALSE;
hdc = context->gdi->hdc;
hdc = context->gdi->primary->hdc;
if (!hdc || !hdc->hwnd || !hdc->hwnd->invalid)
return FALSE;