From 9ebadf7c8e54c25761a3e810857350ed8c8cf964 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 3 Apr 2012 17:58:31 -0700 Subject: [PATCH] Implement EndPaint. --- include/rdp_gdi.h | 1 + src/client.c | 1 + src/rdp_gdi.c | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/include/rdp_gdi.h b/include/rdp_gdi.h index 97cc305..1f68352 100644 --- a/include/rdp_gdi.h +++ b/include/rdp_gdi.h @@ -51,5 +51,6 @@ void guac_rdp_gdi_memblt(rdpContext* context, MEMBLT_ORDER* memblt); void guac_rdp_gdi_opaquerect(rdpContext* context, OPAQUE_RECT_ORDER* opaque_rect); void guac_rdp_gdi_palette_update(rdpContext* context, PALETTE_UPDATE* palette); void guac_rdp_gdi_set_bounds(rdpContext* context, rdpBounds* bounds); +void guac_rdp_gdi_end_paint(rdpContext* context); #endif diff --git a/src/client.c b/src/client.c index e6a028b..d7f0b8d 100644 --- a/src/client.c +++ b/src/client.c @@ -145,6 +145,7 @@ boolean rdp_freerdp_pre_connect(freerdp* instance) { xfree(pointer); /* Set up GDI */ + instance->update->EndPaint = guac_rdp_gdi_end_paint; instance->update->Palette = guac_rdp_gdi_palette_update; instance->update->SetBounds = guac_rdp_gdi_set_bounds; diff --git a/src/rdp_gdi.c b/src/rdp_gdi.c index e2202e7..7153f4b 100644 --- a/src/rdp_gdi.c +++ b/src/rdp_gdi.c @@ -264,3 +264,8 @@ void guac_rdp_gdi_set_bounds(rdpContext* context, rdpBounds* bounds) { } +void guac_rdp_gdi_end_paint(rdpContext* context) { + guac_client* client = ((rdp_freerdp_context*) context)->client; + guac_socket_flush(client->socket); +} + -- 1.7.10.4