From 02897d134e26d971c78eb9088cc63859e235f71f Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Thu, 10 Jun 2021 13:16:30 +0200 Subject: [PATCH] [Theme] drawProgressBar() should be given the total to avoid using only percentages --- radio/src/thirdparty/libopenui/src/progress.cpp | 2 +- radio/src/thirdparty/libopenui/src/theme.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/progress.cpp b/radio/src/thirdparty/libopenui/src/progress.cpp index a29707719..d17cd9a07 100644 --- a/radio/src/thirdparty/libopenui/src/progress.cpp +++ b/radio/src/thirdparty/libopenui/src/progress.cpp @@ -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); } diff --git a/radio/src/thirdparty/libopenui/src/theme.h b/radio/src/thirdparty/libopenui/src/theme.h index e7b138229..0de92ac33 100644 --- a/radio/src/thirdparty/libopenui/src/theme.h +++ b/radio/src/thirdparty/libopenui/src/theme.h @@ -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 {