X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fbuiltin%2Fsplash.xwt;h=6f44ccaebf7aa6d47d24797cec90bbd7196412f4;hb=6a96430e10e27fc1de5754cb5add705f929dd109;hp=a948187ec08cb1b22dc5229c7a320fbf90aac198;hpb=a65344038e1f30746e054eb45e54cd0ca18f18c2;p=org.ibex.core.git diff --git a/src/org/xwt/builtin/splash.xwt b/src/org/xwt/builtin/splash.xwt index a948187..6f44cca 100644 --- a/src/org/xwt/builtin/splash.xwt +++ b/src/org/xwt/builtin/splash.xwt @@ -7,7 +7,6 @@ var progress = function(n, d) { $innerbar.width = $bar.width * n / d + 1; $text.text = "downloaded " + (xwt.math.ceil(100 * n/d)) + "%"; - xwt.yield(); } xwt.thread = function() { @@ -28,14 +27,17 @@ var new_xwt = xwt.clone(new_rr); xwt.thread = function() { - xwt.yield(); +for(var i=0; 100>i; i++) { +progress(i, 100); +xwt.yield(); +} new_xwt.apply(xwt.box, new_xwt["main.xwt"]); thisbox = null; } } - - + +