- org.ibex.graphics.Surface.scarImage =
- Picture.load(new Fountain.FromInputStream(Encode.JavaSourceCode.decode(Scar.data)),
- new Callable() {
- private final JS[] callargs = new JS[1];
- public Object run(Object o) throws JSExn,UnknownHostException {
- if (Log.on) Log.info(Main.class, "invoking initial template");
- try {
- callargs[0] = new Box();
- ibex.resolveString(startupTemplate, false).call(null, callargs);
- } finally { callargs[0] = null; }
- return null;
- } });
+ try {
+ JS blessed = ibex.bless(new Fountain.FromInputStream(Encode.JavaSourceCode.decode(org.ibex.core.builtin.Scar.data)));
+ org.ibex.graphics.Surface.scarImage = Platform.createPicture(blessed);
+ } catch (Exception e) {
+ Log.error(Main.class, e);
+ }