Mercurial > hg > Members > nobuyasu > tightVNCProxy
comparison src/myVncProxy/VncCanvas.java @ 80:712a047908df
recompress output
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 03 Aug 2011 02:42:56 +0900 |
parents | 626cf8cc002c |
children | a8b2712de4c5 |
comparison
equal
deleted
inserted
replaced
78:5970410efee7 | 80:712a047908df |
---|---|
738 // Handle a Hextile-encoded rectangle. | 738 // Handle a Hextile-encoded rectangle. |
739 // | 739 // |
740 | 740 |
741 // These colors should be kept between handleHextileSubrect() calls. | 741 // These colors should be kept between handleHextileSubrect() calls. |
742 private Color hextile_bg, hextile_fg; | 742 private Color hextile_bg, hextile_fg; |
743 boolean noZRLEdecode = false; | |
743 | 744 |
744 void handleHextileRect(int x, int y, int w, int h) throws IOException { | 745 void handleHextileRect(int x, int y, int w, int h) throws IOException { |
745 | 746 |
746 hextile_bg = new Color(0); | 747 hextile_bg = new Color(0); |
747 hextile_fg = new Color(0); | 748 hextile_fg = new Color(0); |
885 // | 886 // |
886 // FIXME: Currently, session recording is not fully supported for ZRLE. | 887 // FIXME: Currently, session recording is not fully supported for ZRLE. |
887 // | 888 // |
888 | 889 |
889 void handleZRLERect(int x, int y, int w, int h) throws Exception { | 890 void handleZRLERect(int x, int y, int w, int h) throws Exception { |
890 | 891 if (noZRLEdecode) return; |
891 if (zrleInStream == null) | 892 if (zrleInStream == null) |
892 zrleInStream = new ZlibInStream(); | 893 zrleInStream = new ZlibInStream(); |
893 // System.out.println("zrleInStream.end="+zrleInStream.inflater.off); | 894 // System.out.println("zrleInStream.end="+zrleInStream.inflater.off); |
894 | 895 |
895 int nBytes = rfb.readU32(); | 896 int nBytes = rfb.readU32(); |