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 cf74bf5..487aa3d 100644
--- a/java/com/tigervnc/rfb/RREDecoder.java
+++ b/java/com/tigervnc/rfb/RREDecoder.java
@@ -38,7 +38,8 @@
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);
}
}