Patchwork [11/14] pybootchartgui: Make bars without a specified color white

login
register
mail settings
Submitter Peter Kjellerstedt
Date Nov. 15, 2013, 5:09 p.m.
Message ID <ad59c88a884bd275ed101f0f5bc6315b47031219.1384535211.git.pkj@axis.com>
Download mbox | patch
Permalink /patch/61813/
State New
Headers show

Comments

Peter Kjellerstedt - Nov. 15, 2013, 5:09 p.m.
Previously they were transparent.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 scripts/pybootchartgui/pybootchartgui/draw.py | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 2aa348b..ea960f9 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -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))