Revision: 4823 http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4823&view=rev Author: bphinz Date: 2011-12-08 02:16:53 +0000 (Thu, 08 Dec 2011) Log Message: ----------- make sure that color map is set for all pixel formats or throw an exception
Modified Paths: -------------- trunk/java/com/tigervnc/rfb/PixelBuffer.java Modified: trunk/java/com/tigervnc/rfb/PixelBuffer.java =================================================================== --- trunk/java/com/tigervnc/rfb/PixelBuffer.java 2011-12-04 22:58:48 UTC (rev 4822) +++ trunk/java/com/tigervnc/rfb/PixelBuffer.java 2011-12-08 02:16:53 UTC (rev 4823) @@ -46,6 +46,12 @@ case 24: cm = new DirectColorModel(32, (0xff << 16), (0xff << 8), 0xff, (0xff << 24)); break; + case 32: + cm = new DirectColorModel(32, (0xff << pf.redShift), + (0xff << pf.greenShift), (0xff << pf.blueShift), (0xff << 24)); + break; + default: + throw new Exception("Unsupported color depth ("+pf.depth+")"); } } public PixelFormat getPF() { return format; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ Tigervnc-commits mailing list Tigervnc-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-commits