From 572f2f45c62abe522a482571ff7d5f65a08ab0f6 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Wed, 10 Aug 2011 23:55:47 +0800 Subject: [PATCH] libfreerdp-core/fastpath: call BeginPaint/EndPaint. --- libfreerdp-core/fastpath.c | 6 ++++++ libfreerdp-gdi/gdi.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libfreerdp-core/fastpath.c b/libfreerdp-core/fastpath.c index da8df33..146b51e 100644 --- a/libfreerdp-core/fastpath.c +++ b/libfreerdp-core/fastpath.c @@ -243,10 +243,16 @@ static void fastpath_recv_update_data(rdpFastPath* fastpath, STREAM* s) void fastpath_recv_updates(rdpFastPath* fastpath, STREAM* s) { + rdpUpdate* update = fastpath->rdp->update; + + IFCALL(update->BeginPaint, update); + while (stream_get_left(s) > 3) { fastpath_recv_update_data(fastpath, s); } + + IFCALL(update->EndPaint, update); } rdpFastPath* fastpath_new(rdpRdp* rdp) diff --git a/libfreerdp-gdi/gdi.c b/libfreerdp-gdi/gdi.c index 3aae077..60dd7c1 100644 --- a/libfreerdp-gdi/gdi.c +++ b/libfreerdp-gdi/gdi.c @@ -705,7 +705,7 @@ void gdi_surface_bits(rdpUpdate* update, SURFACE_BITS_COMMAND* surface_bits_comm int i, j; int tx, ty; - DEBUG_GDI("gdi_surface_bits: destLeft %d destTop %d destRight %d destBottom %d " + DEBUG_GDI("destLeft %d destTop %d destRight %d destBottom %d " "bpp %d codecID %d width %d height %d length %d", surface_bits_command->destLeft, surface_bits_command->destTop, surface_bits_command->destRight, surface_bits_command->destBottom, @@ -720,6 +720,8 @@ void gdi_surface_bits(rdpUpdate* update, SURFACE_BITS_COMMAND* surface_bits_comm message = rfx_process_message(context, s); + DEBUG_GDI("num_rects %d num_tiles %d", message->num_rects, message->num_tiles); + if (message->num_rects > 1) /* RDVH */ { /* blit each tile */ -- 2.7.4