]> source.dussan.org Git - tigervnc.git/commitdiff
[Developement] Added "writeShortBE" method to interface RecordInterface and class...
authorenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Thu, 25 Dec 2008 07:56:50 +0000 (07:56 +0000)
committerenikey <enikey@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Thu, 25 Dec 2008 07:56:50 +0000 (07:56 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3461 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/vncviewer/RecordInterface.java
java/src/com/tightvnc/vncviewer/VncCanvas.java

index 6db71ce429d2046a373746026a7f63082fe919fd..7e1f0c9e4179944b1fd47fbb9657151ad6a8169d 100644 (file)
@@ -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;
 }
index 823f8996e527088043ecd16ad73158eeea1d737d..0954112663de00ce7d9db49ed4eb9a72e5552940 100644 (file)
@@ -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);
   }