From 44ead029f7dada5ad6cb71848d9605eb1cf9e7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoi=CC=82t=20LeBlanc?= Date: Thu, 11 Jul 2013 11:19:21 -0700 Subject: [PATCH] MacFreeRDP: fixed incorrect invalidation region that caused "tiles". Removed unused variables. --- client/Mac/MRDPView.m | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/client/Mac/MRDPView.m b/client/Mac/MRDPView.m index 95dc36f0a..0accf655b 100644 --- a/client/Mac/MRDPView.m +++ b/client/Mac/MRDPView.m @@ -889,13 +889,7 @@ BOOL mac_pre_connect(freerdp* instance) BOOL mac_post_connect(freerdp* instance) { - int index; - int fds[32]; UINT32 flags; - int rd_count = 0; - int wr_count = 0; - void* rd_fds[32]; - void* wr_fds[32]; rdpPointer rdp_pointer; mfContext *mfc = (mfContext*) instance->context; @@ -1150,10 +1144,10 @@ void mac_end_paint(rdpContext* context) for (i = 0; i < gdi->primary->hdc->hwnd->ninvalid; i++) { - drawRect.origin.x = gdi->primary->hdc->hwnd->cinvalid[i].x; - drawRect.origin.y = gdi->primary->hdc->hwnd->cinvalid[i].y; - drawRect.size.width = gdi->primary->hdc->hwnd->cinvalid[i].w; - drawRect.size.height = gdi->primary->hdc->hwnd->cinvalid[i].h; + drawRect.origin.x = gdi->primary->hdc->hwnd->cinvalid[i].x - 1; + drawRect.origin.y = gdi->primary->hdc->hwnd->cinvalid[i].y - 1; + drawRect.size.width = gdi->primary->hdc->hwnd->cinvalid[i].w + 1; + drawRect.size.height = gdi->primary->hdc->hwnd->cinvalid[i].h + 1; windows_to_apple_cords(mfc->view, &drawRect); [view setNeedsDisplayInRect:drawRect]; }