mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-31 01:24:31 +02:00
bug: fix incorrect CPU colour offset (#290)
Fixes an incorrect offset affecting the CPU colour when scrolling.
This commit is contained in:
parent
465a433d0d
commit
5df1764e90
@ -364,10 +364,10 @@ impl CpuGraphWidget for Painter {
|
||||
cpu_string_row.into_iter(),
|
||||
if itx == offset_scroll_index {
|
||||
self.colours.currently_selected_text_style
|
||||
} else if itx == ALL_POSITION {
|
||||
} else if itx + start_position == ALL_POSITION {
|
||||
self.colours.all_colour_style
|
||||
} else if show_avg_cpu {
|
||||
if itx == AVG_POSITION {
|
||||
if itx + start_position == AVG_POSITION {
|
||||
self.colours.avg_colour_style
|
||||
} else {
|
||||
self.colours.cpu_colour_styles[itx + start_position
|
||||
|
Loading…
x
Reference in New Issue
Block a user