summaryrefslogtreecommitdiffstats
path: root/TraceScreen.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-16 21:46:11 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-12-20 17:01:50 +0100
commite3862aa67e37ecef0eb8f82ba1f4a710ffac9c02 (patch)
treeaa906dac3ffca307c01b9dc78ed75082aecf238c /TraceScreen.c
parent7e7a53c415b82cceee6173922987b772b1d51c10 (diff)
Rework drawing of FunctionBar
Draw the FunctionBar within Panel_draw instead of manually throughout the code. Add an optional PanelClass function drawFunctionBar, to allow specific panels to override the default FunctionBar_draw call. Rework the code on color change, to really change all colors (selection markers and panel headers). Closes: #402
Diffstat (limited to 'TraceScreen.c')
-rw-r--r--TraceScreen.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/TraceScreen.c b/TraceScreen.c
index e6bd1fb1..e04f4f8a 100644
--- a/TraceScreen.c
+++ b/TraceScreen.c
@@ -71,11 +71,7 @@ void TraceScreen_delete(Object* cast) {
}
void TraceScreen_draw(InfoScreen* this) {
- attrset(CRT_colors[PANEL_HEADER_FOCUS]);
- mvhline(0, 0, ' ', COLS);
- mvprintw(0, 0, "Trace of process %d - %s", this->process->pid, Process_getCommand(this->process));
- attrset(CRT_colors[DEFAULT_COLOR]);
- IncSet_drawBar(this->inc);
+ InfoScreen_drawTitled(this, "Trace of process %d - %s", this->process->pid, Process_getCommand(this->process));
}
bool TraceScreen_forkTracer(TraceScreen* this) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy