projects
/
libguac-client-rdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7417d2
)
get bitmap size from bounding box (not given width/height)
author
Matt Hortman <matt@FlintRiverSystems.com>
Thu, 1 Mar 2012 20:27:25 +0000
(15:27 -0500)
committer
Matt Hortman <matt@FlintRiverSystems.com>
Thu, 1 Mar 2012 20:27:25 +0000
(15:27 -0500)
src/rdp_bitmap.c
patch
|
blob
|
history
diff --git
a/src/rdp_bitmap.c
b/src/rdp_bitmap.c
index
c192395
..
13762d2
100644
(file)
--- 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);