diff --git a/protocols/rdp/src/rdp_bitmap.c b/protocols/rdp/src/rdp_bitmap.c index c192395f..13762d2b 100644 --- a/protocols/rdp/src/rdp_bitmap.c +++ b/protocols/rdp/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);