pybootchartgui: Make bars without a specified color white
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 15 Nov 2013 17:09:00 +0000 (18:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Nov 2013 12:44:56 +0000 (12:44 +0000)
Previously they were transparent.

(From OE-Core rev: 4ebdd8672cc5589a3e2f8d1b75cde7fae9fd6c99)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/pybootchartgui/pybootchartgui/draw.py

index 2aa348b..ea960f9 100644 (file)
@@ -451,6 +451,8 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
                     col = TASK_COLOR_PACKAGE
                 elif task == "do_populate_sysroot":
                     col = TASK_COLOR_SYSROOT
+                else:
+                    col = WHITE
 
                 if col:
                     draw_fill_rect(ctx, col, (x, y, w, proc_h))