diff -u vnc_javasrc.orig/VncCanvas.java vnc_javasrc/VncCanvas.java --- vnc_javasrc.orig/VncCanvas.java Sun Aug 4 09:39:36 2002 +++ vnc_javasrc/VncCanvas.java Sun Oct 20 02:57:38 2002 @@ -77,7 +77,12 @@ tightInflaters = new Inflater[4]; - cm8 = new DirectColorModel(8, 7, (7 << 3), (3 << 6)); + int bits8 = 8; + if (System.getProperty("java.vendor","unknown").startsWith("Apple") && + System.getProperty("java.version","unknown").startsWith("1.1")) { + bits8 = 9; // old versions of Apple's Java don't work with 8 bits + } + cm8 = new DirectColorModel(bits8, 7, (7 << 3), (3 << 6)); cm24 = new DirectColorModel(24, 0xFF0000, 0x00FF00, 0x0000FF); colors = new Color[256];