Patchwork [06/14] pybootchartgui: Avoid having overlapping process bars

login
register
mail settings
Submitter Peter Kjellerstedt
Date Nov. 15, 2013, 5:08 p.m.
Message ID <ac22def15a28921bf5498e970606f74fd158ecc4.1384535211.git.pkj@axis.com>
Download mbox | patch
Permalink /patch/61803/
State Accepted
Commit c10abc74d85ea1c4c3facf27c890cd21647dc393
Headers show

Comments

Peter Kjellerstedt - Nov. 15, 2013, 5:08 p.m.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 scripts/pybootchartgui/pybootchartgui/draw.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index b1ad6e6..6b15d64 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -432,9 +432,9 @@  def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w):
                 elif task == "do_populate_sysroot":
                     col = TASK_COLOR_SYSROOT
 
-                draw_rect(ctx, PROC_BORDER_COLOR, (x, y, w, proc_h))
                 if col:
                     draw_fill_rect(ctx, col, (x, y, w, proc_h))
+                draw_rect(ctx, PROC_BORDER_COLOR, (x, y, w, proc_h))
 
                 draw_label_in_box(ctx, PROC_TEXT_COLOR, val, x, y + proc_h - 4, w, proc_h)
                 y = y + proc_h