From: enikey Date: Thu, 25 Dec 2008 07:56:50 +0000 (+0000) Subject: [Developement] Added "writeShortBE" method to interface RecordInterface and class... X-Git-Tag: v0.0.90~223 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1803c750ade726d6065b138c6f8e8c8f355889ff;p=tigervnc.git [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 --- 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); }