preliminary core conversion
[org.ibex.core.git] / src / org / ibex / graphics / Color.java
index 210aade..f12e433 100644 (file)
@@ -8,7 +8,7 @@ public class Color {
     public static int stringToColor(String s) {
         // FIXME support three-char strings by doubling digits
         if (s == null) return 0x00000000;
     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 |
         else if (s.length() == 7 && s.charAt(0) == '#') try {
             // FEATURE  alpha
             return 0xFF000000 |