summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2013-10-03 18:52:30 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2013-10-03 18:52:30 +0000
commitee1e5e5b8ad3cff2d1284a51c7a4d6e14c595ed1 (patch)
tree3d0a99944ae9856a75fb0599f9ce6344ddef692b /java
parent5e711faec0c9f99e9cf3baf29a6c2584156e4f39 (diff)
downloadtigervnc-ee1e5e5b8ad3cff2d1284a51c7a4d6e14c595ed1.tar.gz
tigervnc-ee1e5e5b8ad3cff2d1284a51c7a4d6e14c595ed1.zip
Applied DRC's patch to fix broken RRE decoder in java client
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5136 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r--java/com/tigervnc/rfb/RREDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/tigervnc/rfb/RREDecoder.java b/java/com/tigervnc/rfb/RREDecoder.java
index cf74bf58..487aa3d0 100644
--- a/java/com/tigervnc/rfb/RREDecoder.java
+++ b/java/com/tigervnc/rfb/RREDecoder.java
@@ -38,7 +38,8 @@ public class RREDecoder extends Decoder {
int y = is.readU16();
int w = is.readU16();
int h = is.readU16();
- handler.fillRect(new Rect(x, y, w, h), pix);
+ handler.fillRect(new Rect(r.tl.x + x, r.tl.y + y,
+ r.tl.x + x + w, r.tl.y + y + h), pix);
}
}