- glcd: simplify showProgressBarBorder() call

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-06-23 00:37:57 +02:00
committed by Thilo Graf
parent dee0d3357e
commit 0271586fd5

View File

@@ -372,16 +372,15 @@ void cGLCD::Exec()
if (percent_bar && t.glcd_show_progressbar) if (percent_bar && t.glcd_show_progressbar)
{ {
int tmp_pos = 0; showProgressBarBorder(
tmp_pos = t.glcd_bar_y_position; t.glcd_bar_x_position,
t.glcd_bar_y_position,
int bar_top = 0; t.glcd_bar_width,
int bar_bottom = 0; t.glcd_bar_y_position + t.glcd_percent_bar,
Scale,
bar_top = tmp_pos; GLCD::cColor::Gray,
bar_bottom = tmp_pos + t.glcd_percent_bar; ColorConvert3to1(t.glcd_color_bar_red, t.glcd_color_bar_green, t.glcd_color_bar_blue)
);
showProgressBarBorder(t.glcd_bar_x_position, bar_top, t.glcd_bar_width, bar_bottom, Scale, GLCD::cColor::White, ColorConvert3to1(t.glcd_color_bar_red, t.glcd_color_bar_green, t.glcd_color_bar_blue));
} }
if (percent_time && t.glcd_show_time) if (percent_time && t.glcd_show_time)