X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fgraphics%2FColor.java;h=f12e43353e324cdc1b0860aa2035d22f9c81739c;hp=210aadebe0383808bb148dafc62f044dc1ab77e8;hb=76982fccac3c46ccc47621dd22dc0c96b6b9cd62;hpb=ce791e4058158295bce9cf7b6698c2b565d571d7 diff --git a/src/org/ibex/graphics/Color.java b/src/org/ibex/graphics/Color.java index 210aade..f12e433 100644 --- a/src/org/ibex/graphics/Color.java +++ b/src/org/ibex/graphics/Color.java @@ -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; - 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 |