2003/11/13 10:23:10
[org.ibex.core.git] / src / org / xwt / builtin / splash.xwt
index a6693b0..40ed34e 100644 (file)
         }
 
         xwt.thread = function() {
-xwt.log.println("1");
 //            $text.font = xwt.fonts.vera["Vera.ttf"];
-            var cab = xwt.res.uncab(xwt.res.url("http://master.dist.xwt.org/msfonts/arial32.exe"));
+            $text.font = xwt.res.uncab(xwt.res.url("http://master.dist.xwt.org/msfonts/arial32.exe"))["Arial.TTF"];
 //            $text.font = xwt.res.cache(cab["Arial.TTF"]);
-xwt.log.println("2");
-            $text.font = cab["Arial.TTF"];
-xwt.log.println("3");
             $text.fontsize = 18;
-xwt.log.println("4");
             $text.text = "downloading...";
-xwt.log.println("5");
             fill = xwt.org.xwt.builtin["splash.png"];
-xwt.log.println("6");
             xwt.ui.window = thisbox;
-xwt.log.println("7");
             thisbox.width = 100;
             thisbox.height = 100;
-xwt.log.println("8");
-            x = (xwt.screen.width - width) / 2;
-            y = (xwt.screen.height - height) / 2;
+            x = (xwt.ui.screen.width - width) / 2;
+            y = (xwt.ui.screen.height - height) / 2;
             var origin = xwt.origin;
             if (origin.substring(0, 21) == "http://launch.xwt.org") {
                 origin = origin.substring(22);
@@ -48,6 +39,7 @@ xwt.thread.yield();
                 new_xwt.apply(xwt.box, new_xwt["main.xwt"]);
                 thisbox = null;
             }
+xwt.log.println("leaving");
         }
 
         <box height="233" align="bottomleft" packed="false" x="20" y="0">