diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2016-11-30 10:50:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-07 10:36:10 +0000 |
commit | b6bb690728c329ae448f89a1b68298c6dd8a573a (patch) | |
tree | 1c687633a2753b96bb96e425a344252675fc4778 /scripts/buildhistory-diff | |
parent | 6f4e8180b5b4857eaf6caf410fd3a4a41ed85930 (diff) | |
download | openembedded-core-b6bb690728c329ae448f89a1b68298c6dd8a573a.tar.gz openembedded-core-b6bb690728c329ae448f89a1b68298c6dd8a573a.tar.bz2 openembedded-core-b6bb690728c329ae448f89a1b68298c6dd8a573a.zip |
pybootchartgui/draw.py: allow moving process chart up and down
Substracting curr_y when determining the hight of the process chart is
wrong because the height is independent of the position where the
chart is about to be drawn. It happens to work at the moment because
curr_y is always 10 when render_processes_chart() gets called. But it
leads to a negative height when other charts are drawn above it, and
then the grid gets drawn on top of those other charts.
Substracting some constant is relevant because otherwise the box is
slightly larger than the process bars. Not sure exactly where that
comes from (text height?); leg_s seems a suitable constant and happens
to be 10, so everything still gets rendered exactly as before.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/buildhistory-diff')
0 files changed, 0 insertions, 0 deletions