From: Matt Hortman Date: Thu, 1 Mar 2012 20:27:25 +0000 (-0500) Subject: get bitmap size from bounding box (not given width/height) X-Git-Url: http://git.alex.org.uk get bitmap size from bounding box (not given width/height) --- 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);