From: megacz Date: Fri, 30 Jan 2004 07:43:41 +0000 (+0000) Subject: 2003/12/29 21:59:21 X-Git-Tag: RC3~218 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=89afe7ee10eddb1876e2a94a5630748837c29e16 2003/12/29 21:59:21 darcs-hash:20040130074341-2ba56-6311d90bcf62e0e14dbbbecde4eba35d23a1de38.gz --- diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index 7572beb..186e93d 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -365,8 +365,8 @@ public final class Box extends JSScope implements Scheduler.Task { if (cx2 <= cx1 || cy2 <= cy1) return; } - if ((fillcolor & 0xFF000000) != 0x00000000) - buf.fillTrapezoid(cx1, cx2, cy1, cx1, cx2, cy2, fillcolor); + if ((fillcolor & 0xFF000000) != 0x00000000 || parent == null) + buf.fillTrapezoid(cx1, cx2, cy1, cx1, cx2, cy2, (fillcolor & 0xFF000000) == 0 ? 0xffffffff : fillcolor); // FIXME: do aspect in here if (texture != null && texture.isLoaded)