summaryrefslogtreecommitdiffstats
path: root/libvncclient
diff options
context:
space:
mode:
authordscho <dscho>2007-08-14 14:31:08 +0000
committerdscho <dscho>2007-08-14 14:31:08 +0000
commiteb2eeed97e47f6b996c6a7bf9830b0083a66a96f (patch)
tree9e5ea17ad236307b30d600c95c401a31a78452e2 /libvncclient
parent338301c1883da09e99647826c73db817bc984366 (diff)
downloadlibtdevnc-eb2eeed97e47f6b996c6a7bf9830b0083a66a96f.tar.gz
libtdevnc-eb2eeed97e47f6b996c6a7bf9830b0083a66a96f.zip
LibVNCClient: if the GotRect hook is set, override default op.
Diffstat (limited to 'libvncclient')
-rw-r--r--libvncclient/rfbproto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index 01c80ca..6e87f69 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -1287,8 +1287,8 @@ HandleRFBServerMessage(rfbClient* client)
if (client->GotCopyRect != NULL) {
client->GotCopyRect(client, cr.srcX, cr.srcY, rect.r.w, rect.r.h,
rect.r.x, rect.r.y);
- }
- CopyRectangleFromRectangle(client,
+ } else
+ CopyRectangleFromRectangle(client,
cr.srcX, cr.srcY, rect.r.w, rect.r.h,
rect.r.x, rect.r.y);