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)
{
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;