[gui] Fix IndexColorModel constructor params

Jerry Quinn jlquinn@optonline.net
Sat Nov 6 05:14:00 GMT 2004


 From Paul Jenner:

2004-11-06  Paul Jenner  <psj.home@ntlworld.com>

	* java/awt/image/IndexColorModel.java (IndexColorModel): Fix
	constructor.

Index: IndexColorModel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/image/IndexColorModel.java,v
retrieving revision 1.6.14.4
retrieving revision 1.6.14.5
diff -u -r1.6.14.4 -r1.6.14.5
--- IndexColorModel.java	1 Oct 2004 04:20:11 -0000	1.6.14.4
+++ IndexColorModel.java	6 Nov 2004 05:13:27 -0000	1.6.14.5
@@ -211,7 +211,7 @@
     * @param trans the index of the transparent color
     * @param transferType DataBuffer.TYPE_BYTE or DataBuffer.TYPE_USHORT
     */
-  public IndexColorModel (int bits, int size, byte[] cmap, int start,
+  public IndexColorModel (int bits, int size, int[] cmap, int start,
                            boolean hasAlpha, int trans, int transferType)
    {
      super(bits * 4, // total bits, sRGB, four channels



More information about the Java-patches mailing list