mirror of https://github.com/FreeRDP/FreeRDP
Call redraw only when region is invalidated
Added a condition to redraw a rect only when region is invalidated. For example. this avoids a redraw when only the cursor changes on the remote machine.
This commit is contained in:
parent
8a5ded36e6
commit
58ab355bad
|
@ -106,7 +106,8 @@ void ios_ui_end_paint(rdpContext * context)
|
|||
rdpGdi *gdi = context->gdi;
|
||||
CGRect dirty_rect = CGRectMake(gdi->primary->hdc->hwnd->invalid->x, gdi->primary->hdc->hwnd->invalid->y, gdi->primary->hdc->hwnd->invalid->w, gdi->primary->hdc->hwnd->invalid->h);
|
||||
|
||||
[mfi->session performSelectorOnMainThread:@selector(setNeedsDisplayInRectAsValue:) withObject:[NSValue valueWithCGRect:dirty_rect] waitUntilDone:NO];
|
||||
if (gdi->primary->hdc->hwnd->invalid->null == 0)
|
||||
[mfi->session performSelectorOnMainThread:@selector(setNeedsDisplayInRectAsValue:) withObject:[NSValue valueWithCGRect:dirty_rect] waitUntilDone:NO];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue