comparison src/myVncClient/CuiVncCanvas.java @ 78:fe94e353d595

modify
author e085711
date Tue, 30 Aug 2011 18:33:24 +0900
parents 5e7110277cf0
children 71bfbb5241bf
comparison
equal deleted inserted replaced
77:42b08ecc4cb5 78:fe94e353d595
453 break; 453 break;
454 case RfbProto.EncodingZRLE: 454 case RfbProto.EncodingZRLE:
455 statNumRectsZRLE++; 455 statNumRectsZRLE++;
456 handleZRLERect(rx, ry, rw, rh); 456 handleZRLERect(rx, ry, rw, rh);
457 break; 457 break;
458 case RfbProto.EncodingZRLEE:
459 statNumRectsZRLE++;
460 handleZRLERect(rx, ry, rw, rh);
461 break;
458 case RfbProto.EncodingZlib: 462 case RfbProto.EncodingZlib:
459 handleZlibRect(rx, ry, rw, rh); 463 handleZlibRect(rx, ry, rw, rh);
460 break; 464 break;
461 case RfbProto.EncodingTight: 465 case RfbProto.EncodingTight:
462 statNumRectsTight++; 466 statNumRectsTight++;
870 // 874 //
871 // FIXME: Currently, session recording is not fully supported for ZRLE. 875 // FIXME: Currently, session recording is not fully supported for ZRLE.
872 // 876 //
873 877
874 void handleZRLERect(int x, int y, int w, int h) throws Exception { 878 void handleZRLERect(int x, int y, int w, int h) throws Exception {
879 if (rfb.updateRectEncoding==RfbProto.EncodingZRLEE) zrleInStream = null;
875 880
876 if (zrleInStream == null) 881 if (zrleInStream == null)
877 zrleInStream = new ZlibInStream(); 882 zrleInStream = new ZlibInStream();
878 883
879 int nBytes = rfb.readU32(); 884 int nBytes = rfb.readU32();