From: Brian Hinz Date: Thu, 3 Oct 2013 18:52:30 +0000 (+0000) Subject: Applied DRC's patch to fix broken RRE decoder in java client X-Git-Tag: v1.3.90~88 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ee1e5e5b8ad3cff2d1284a51c7a4d6e14c595ed1;p=tigervnc.git 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 --- 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); } }