From ee1e5e5b8ad3cff2d1284a51c7a4d6e14c595ed1 Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Thu, 3 Oct 2013 18:52:30 +0000 Subject: [PATCH] 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 --- java/com/tigervnc/rfb/RREDecoder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.39.5