[Theme] drawProgressBar() should be given the total to avoid using only percentages
This commit is contained in:
+1
-1
@@ -22,5 +22,5 @@
|
|||||||
|
|
||||||
void Progress::paint(BitmapBuffer * dc)
|
void Progress::paint(BitmapBuffer * dc)
|
||||||
{
|
{
|
||||||
theme->drawProgressBar(dc, 0, 0, width(), height(), value);
|
theme->drawProgressBar(dc, 0, 0, width(), height(), value, 100);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ class Theme {
|
|||||||
// char * action, LcdFlags flags) const = 0;
|
// char * action, LcdFlags flags) const = 0;
|
||||||
|
|
||||||
virtual void drawProgressBar(BitmapBuffer * dc, coord_t x, coord_t y,
|
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
|
virtual void drawCheckBox(BitmapBuffer* dc, CheckBox* checkBox) const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user