Mercurial > hg > Members > nobuyasu > tightVNCProxy
diff src/myVncProxy/ProxyVncCanvas.java @ 128:fa2122e5c807
modify ProxyVncCanva
author | e085711 |
---|---|
date | Tue, 02 Aug 2011 20:15:01 +0900 |
parents | 97bb1436e34c |
children | acd88e63854b |
line wrap: on
line diff
--- a/src/myVncProxy/ProxyVncCanvas.java Tue Aug 02 13:17:23 2011 +0900 +++ b/src/myVncProxy/ProxyVncCanvas.java Tue Aug 02 20:15:01 2011 +0900 @@ -352,6 +352,8 @@ rfb.writeFramebufferUpdateRequest(0, 0, rfb.framebufferWidth, rfb.framebufferHeight, false); + + rfb.requireFramebuffer(); resetStats(); boolean statsRestarted = false; @@ -374,7 +376,7 @@ rfb.regiFramebufferUpdate(); rfb.printFramebufferUpdate(); - int bufSize = (int)rfb.getNumBytesRead(); + long bytesRead = rfb.getNumBytesRead(); // Read message type from the server. int msgType = rfb.readServerMessageType(); @@ -530,8 +532,8 @@ throw new Exception("Unknown RFB message type " + msgType); } - bufSize = (int)rfb.getNumBytesRead() - bufSize; - System.out.println("bufSize="+bufSize); + int bufSize = (int)(rfb.getNumBytesRead() - bytesRead); + System.out.println("bufSize = " + bufSize); rfb.bufResetSend(bufSize);