2003/12/29 21:59:21
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:43:41 +0000 (07:43 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:43:41 +0000 (07:43 +0000)
darcs-hash:20040130074341-2ba56-6311d90bcf62e0e14dbbbecde4eba35d23a1de38.gz

src/org/xwt/Box.java

index 7572beb..186e93d 100644 (file)
@@ -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)