This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gui] Fix IndexColorModel constructor params
- From: Jerry Quinn <jlquinn at optonline dot net>
- To: java-patches at gcc dot gnu dot org, psj dot home at ntlworld dot com
- Date: Sat, 06 Nov 2004 00:17:58 -0500
- Subject: [gui] Fix IndexColorModel constructor params
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