Mercurial > hg > Applications > TreeVNC
comparison 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 |
comparison
equal
deleted
inserted
replaced
51:eb34277a22ff | 52:986f16afb753 |
---|---|
41 public int x; | 41 public int x; |
42 public int y; | 42 public int y; |
43 public int width; | 43 public int width; |
44 public int height; | 44 public int height; |
45 private EncodingType encodingType; | 45 private EncodingType encodingType; |
46 private boolean firstFlag=false; | |
47 | 46 |
48 public FramebufferUpdateRectangle() { | 47 public FramebufferUpdateRectangle() { |
49 // nop | 48 // nop |
50 } | 49 } |
51 | 50 |
55 } | 54 } |
56 | 55 |
57 public void fill(Reader reader) throws TransportException { | 56 public void fill(Reader reader) throws TransportException { |
58 x = reader.readUInt16(); | 57 x = reader.readUInt16(); |
59 y = reader.readUInt16(); | 58 y = reader.readUInt16(); |
60 if(!firstFlag) { | 59 width = reader.readUInt16(); |
61 width = reader.readUInt16()-2; | 60 height = reader.readUInt16(); |
62 height = reader.readUInt16()-2; | |
63 firstFlag=true; | |
64 } else { | |
65 width = reader.readUInt16(); | |
66 height = reader.readUInt16(); | |
67 } | |
68 int encoding = reader.readInt32(); | 61 int encoding = reader.readInt32(); |
69 encodingType = EncodingType.byId(encoding); | 62 encodingType = EncodingType.byId(encoding); |
70 } | 63 } |
71 | 64 |
72 public EncodingType getEncodingType() { | 65 public EncodingType getEncodingType() { |