diff options
Diffstat (limited to 'tools/perf/util/ui/browser.c')
-rw-r--r-- | tools/perf/util/ui/browser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/ui/browser.c b/tools/perf/util/ui/browser.c index 556829124b02..076a5ffc8f56 100644 --- a/tools/perf/util/ui/browser.c +++ b/tools/perf/util/ui/browser.c | |||
@@ -27,9 +27,12 @@ static int ui_browser__percent_color(struct ui_browser *browser, | |||
27 | return HE_COLORSET_NORMAL; | 27 | return HE_COLORSET_NORMAL; |
28 | } | 28 | } |
29 | 29 | ||
30 | void ui_browser__set_color(struct ui_browser *self __used, int color) | 30 | int ui_browser__set_color(struct ui_browser *browser, int color) |
31 | { | 31 | { |
32 | int ret = browser->current_color; | ||
33 | browser->current_color = color; | ||
32 | SLsmg_set_color(color); | 34 | SLsmg_set_color(color); |
35 | return ret; | ||
33 | } | 36 | } |
34 | 37 | ||
35 | void ui_browser__set_percent_color(struct ui_browser *self, | 38 | void ui_browser__set_percent_color(struct ui_browser *self, |