[re]-merged in Brians stuff
[org.ibex.core.git] / src / org / ibex / graphics / Font.java
index 35e9cf2..619e5b7 100644 (file)
@@ -4,6 +4,7 @@ import org.ibex.util.*;
 import java.io.*;
 import java.util.Hashtable;
 import org.ibex.js.*;
+import org.ibex.core.*;
 import org.ibex.nestedvm.*;
 import org.ibex.plat.*;
 import org.ibex.nestedvm.Runtime;
@@ -136,7 +137,7 @@ public class Font {
         
         try {
             Log.info(Font.class, "loading font " + JS.debugToString(res));
-            InputStream is = Stream.getInputStream(res);
+            InputStream is = res.getInputStream();
             byte[] fontstream = InputStreamToByteArray.convert(is);
             rt.free(loadedStreamAddr);
             loadedStreamAddr = rt.xmalloc(fontstream.length);