summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-25 07:56:50 +0000
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>2008-12-25 07:56:50 +0000
commit1803c750ade726d6065b138c6f8e8c8f355889ff (patch)
treecaf5dc3198141852ecf835b16847703cc76dfbc3 /java
parent970eb52477950029395c40df97b6f14020165234 (diff)
downloadtigervnc-1803c750ade726d6065b138c6f8e8c8f355889ff.tar.gz
tigervnc-1803c750ade726d6065b138c6f8e8c8f355889ff.zip
[Developement] Added "writeShortBE" method to interface RecordInterface and class VncCanvas.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3461 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r--java/src/com/tightvnc/vncviewer/RecordInterface.java1
-rw-r--r--java/src/com/tightvnc/vncviewer/VncCanvas.java5
2 files changed, 5 insertions, 1 deletions
diff --git a/java/src/com/tightvnc/vncviewer/RecordInterface.java b/java/src/com/tightvnc/vncviewer/RecordInterface.java
index 6db71ce4..7e1f0c9e 100644
--- a/java/src/com/tightvnc/vncviewer/RecordInterface.java
+++ b/java/src/com/tightvnc/vncviewer/RecordInterface.java
@@ -21,6 +21,7 @@ public interface RecordInterface {
public void writeByte(byte b) throws IOException;
public void writeByte(int i) throws IOException;
public void writeIntBE(int v) throws IOException;
+ public void writeShortBE(int v) throws IOException;
public void recordCompactLen(int len) throws IOException;
public void recordCompressedData(byte[] data) throws IOException;
}
diff --git a/java/src/com/tightvnc/vncviewer/VncCanvas.java b/java/src/com/tightvnc/vncviewer/VncCanvas.java
index 823f8996..09541126 100644
--- a/java/src/com/tightvnc/vncviewer/VncCanvas.java
+++ b/java/src/com/tightvnc/vncviewer/VncCanvas.java
@@ -662,7 +662,6 @@ class VncCanvas extends Canvas
//
void handleCopyRect(int x, int y, int w, int h) throws IOException {
-
rfb.readCopyRect();
memGraphics.copyArea(rfb.copyRectSrcX, rfb.copyRectSrcY, w, h,
x - rfb.copyRectSrcX, y - rfb.copyRectSrcY);
@@ -1309,6 +1308,10 @@ class VncCanvas extends Canvas
rfb.rec.writeIntBE(v);
}
+ public void writeShortBE(int v) throws IOException {
+ rfb.rec.writeShortBE(v);
+ }
+
public void recordCompactLen(int len) throws IOException {
rfb.recordCompactLen(len);
}