-// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the GNU General Public License version 2 ("the License").
+// You may not use this file except in compliance with the License.
+
package org.ibex.graphics;
import java.util.*;
import org.ibex.util.*;
public static int stringToColor(String s) {
// FIXME support three-char strings by doubling digits
if (s == null) return 0x00000000;
- else if (standard.get(s) != null) return 0xFF000000 | org.ibex.js.JS.toInt(standard.get(s));
+ else if (standard.get(s) != null) return 0xFF000000 | ((Integer)standard.get(s)).intValue();
else if (s.length() == 7 && s.charAt(0) == '#') try {
// FEATURE alpha
return 0xFF000000 |