From: xwt Date: Fri, 30 Jan 2004 07:40:33 +0000 (+0000) Subject: 2003/10/29 03:48:14 X-Git-Tag: RC3~398 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=bc1022147bc50a8eae53b98acce9326b12ce4e24;p=org.ibex.core.git 2003/10/29 03:48:14 darcs-hash:20040130074033-3ac31-af34a30ced6d687821b4fbbd319a1e5f29385c66.gz --- diff --git a/src/org/xwt/builtin/splash.xwt b/src/org/xwt/builtin/splash.xwt index a948187..fa07d95 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,6 +27,7 @@ var new_xwt = xwt.clone(new_rr); xwt.thread = function() { +for(var i=0; 100>i; i++) { progress(i, 100); xwt.sleep(100); } xwt.yield(); new_xwt.apply(xwt.box, new_xwt["main.xwt"]); thisbox = null; @@ -35,7 +35,7 @@ } - + diff --git a/src/org/xwt/plat/X11.cc b/src/org/xwt/plat/X11.cc index 5147ffb..ca45618 100644 --- a/src/org/xwt/plat/X11.cc +++ b/src/org/xwt/plat/X11.cc @@ -111,14 +111,13 @@ void org::xwt::plat::X11$X11PixelBuffer::slowDrawPicture(org::xwt::Picture* s, char* current_pixel = (xi->data + y * xi->bytes_per_line) + (shared_pixmap ? cx1 * (xi->bits_per_pixel / 8) : - 1 * cy1 * xi->bytes_per_line); - for(int x=cx1; x < cx1; x++, current_pixel += xi->bits_per_pixel / 8) { + for(int x=cx1; x < cx2; x++, current_pixel += xi->bits_per_pixel / 8) { int source_x = x - dx; int source_y = y - dy; + // FEATURE: be smarter here; can we do something better for the alphaonly case? int sourcepixel = sourcedata[source_x + source_y * source->getWidth()]; int alpha = (sourcepixel & 0xFF000000) >> 24; - - // FEATURE: be smarter here; can we do something better for the alphaonly case? if (alphaOnly) sourcepixel = rgb; int source_red = (sourcepixel & 0x00FF0000) >> 16; int source_green = (sourcepixel & 0x0000FF00) >> 8;