From 00e13fac756111a8274db375fca4d9236a738522 Mon Sep 17 00:00:00 2001 From: Matt Hortman Date: Thu, 1 Mar 2012 15:27:25 -0500 Subject: [PATCH] get bitmap size from bounding box (not given width/height) --- src/rdp_bitmap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rdp_bitmap.c b/src/rdp_bitmap.c index c192395..13762d2 100644 --- a/src/rdp_bitmap.c +++ b/src/rdp_bitmap.c @@ -113,9 +113,12 @@ void guac_rdp_bitmap_paint(rdpContext* context, rdpBitmap* bitmap) { guac_client* client = ((rdp_freerdp_context*) context)->client; guac_socket* socket = client->socket; + int width = bitmap->right - bitmap->left + 1; + int height = bitmap->bottom - bitmap->top + 1; + guac_protocol_send_copy(socket, ((guac_rdp_bitmap*) bitmap)->layer, - 0, 0, bitmap->width, bitmap->height, + 0, 0, width, height, GUAC_COMP_OVER, GUAC_DEFAULT_LAYER, bitmap->left, bitmap->top); -- 1.7.10.4