fixed hdc initialization into wf_begin_paint so the region invalidation into wf_end_paint applies to the same hdc
the objective is that only the updated region(s) are refreshed instead of the whole screen it's not much a problem for normal FreeRDP usage but becomes a serious issue if the display is processed, forwarded and rendered remotely, as done by web gateways such as Guacamole, FreeRDP-WebConnect and Myrtille (I'm the author of the latter)
This commit is contained in:
parent
510bf8219e
commit
b4b9ed6ce6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user