diff src/main/java/com/glavsoft/rfb/encoding/decoder/FramebufferUpdateRectangle.java @ 52:986f16afb753

update before change host.
author one
date Sat, 02 Nov 2013 17:55:10 +0900
parents 225e3873d75f
children 433c79184c05
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/encoding/decoder/FramebufferUpdateRectangle.java	Wed Aug 07 18:00:54 2013 +0900
+++ b/src/main/java/com/glavsoft/rfb/encoding/decoder/FramebufferUpdateRectangle.java	Sat Nov 02 17:55:10 2013 +0900
@@ -43,7 +43,6 @@
 	public int width;
 	public int height;
     private EncodingType encodingType;
-    private boolean firstFlag=false;
 
 	public FramebufferUpdateRectangle() {
 		// nop
@@ -57,14 +56,8 @@
 	public void fill(Reader reader) throws TransportException {
     	x = reader.readUInt16();
         y = reader.readUInt16();
-        if(!firstFlag) {	
-        	width = reader.readUInt16()-2;
-        	height = reader.readUInt16()-2;
-        	firstFlag=true;
-        } else {
-        	width = reader.readUInt16();
-        	height = reader.readUInt16();
-        }
+        width = reader.readUInt16();
+        height = reader.readUInt16();
         int encoding = reader.readInt32();
 		encodingType = EncodingType.byId(encoding);
     }