2003/09/05 04:28:35
[org.ibex.core.git] / src / org / xwt / Platform.java
index a64a515..671b002 100644 (file)
@@ -211,7 +211,7 @@ public class Platform {
 
     /** returns an InputStream to the builtin xwar */
     protected InputStream _getBuiltinInputStream() {
-        return Platform.class.getClassLoader().getResourceAsStream("org/xwt/builtin.xwar");
+       return new ByteArrayInputStream(org.bouncycastle.util.encoders.Base64.decode(org.xwt.Builtin.encoded));
     }
 
     /** returns the value of the environment variable key, or null if no such key exists */
@@ -391,7 +391,7 @@ public class Platform {
         if (refreshable) {
             Surface.refreshableSurfaceWasCreated = true;
             Surface.allSurfaces.addElement(ret);
-            ret.dirty(0, 0, ret.width, ret.height);
+            ret.dirty(0, 0, b.width, b.height);
             ret.Refresh();
         }
         return ret;