[Theme] drawProgressBar() should be given the total to avoid using only percentages

This commit is contained in:
Raphael Coeffic
2021-06-10 15:28:09 +02:00
parent b72d829e23
commit 02897d134e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,5 +22,5 @@
void Progress::paint(BitmapBuffer * dc)
{
theme->drawProgressBar(dc, 0, 0, width(), height(), value);
theme->drawProgressBar(dc, 0, 0, width(), height(), value, 100);
}
+1 -1
View File
@@ -40,7 +40,7 @@ class Theme {
// char * action, LcdFlags flags) const = 0;
virtual void drawProgressBar(BitmapBuffer * dc, coord_t x, coord_t y,
coord_t w, coord_t h, int value) const = 0;
coord_t w, coord_t h, int value, int total) const = 0;
virtual void drawCheckBox(BitmapBuffer* dc, CheckBox* checkBox) const
{