# HG changeset patch # User e085711 # Date 1302974212 -32400 # Node ID 57f227139599da4926e9b0763e947a37ac509830 # Parent a5d73cafc8fe8f2b87ac8890a74b4da968235541 cui proxy diff -r a5d73cafc8fe -r 57f227139599 src/ProxyVncCanvas.java --- a/src/ProxyVncCanvas.java Sun Apr 17 01:50:24 2011 +0900 +++ b/src/ProxyVncCanvas.java Sun Apr 17 02:16:52 2011 +0900 @@ -397,9 +397,13 @@ } } } - + byte buffer[] = new byte[rfb.available()]; + rfb.readFully(buffer); + rfb.sendData(buffer); + count++; +/* // Read message type from the server. int msgType = rfb.readServerMessageType(); @@ -521,13 +525,13 @@ // Before requesting framebuffer update, check if the pixel // format should be changed. -/* + if (viewer.options.eightBitColors != (bytesPixel == 1)) { // Pixel format should be changed. setPixelFormat(); fullUpdateNeeded = true; } -*/ + // Request framebuffer update if needed. int w = rfb.framebufferWidth; @@ -551,7 +555,7 @@ default: throw new Exception("Unknown RFB message type " + msgType); } - +*/ } }