]> source.dussan.org Git - tigervnc.git/commitdiff
Applied DRC's patch to fix broken RRE decoder in java client
authorBrian Hinz <bphinz@users.sourceforge.net>
Thu, 3 Oct 2013 18:52:30 +0000 (18:52 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Thu, 3 Oct 2013 18:52:30 +0000 (18:52 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5136 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/rfb/RREDecoder.java

index cf74bf587d73801dfd60a1f902becc84dcfcc33b..487aa3d034f3bfdaf851ee351d288c4eeef1c796 100644 (file)
@@ -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);
     }
   }