summaryrefslogtreecommitdiffstats
path: root/Meter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-02-08 16:38:49 +0100
committerBenBE <BenBE@geshi.org>2021-03-04 23:57:45 +0100
commitb862e36ee7ce8954b120eab4fc895c9dc7c7f3db (patch)
tree8c1e69dc1f821c05c3f3b172ebe1a82ce4a83845 /Meter.c
parent2d1042adb382aa95456beff31b40abb7196567a0 (diff)
Separate data-update and drawing of header
Diffstat (limited to 'Meter.c')
-rw-r--r--Meter.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Meter.c b/Meter.c
index 1099a0bc..3173a47c 100644
--- a/Meter.c
+++ b/Meter.c
@@ -154,8 +154,6 @@ ListItem* Meter_toListItem(const Meter* this, bool moving) {
/* ---------- TextMeterMode ---------- */
static void TextMeterMode_draw(Meter* this, int x, int y, ATTR_UNUSED int w) {
- Meter_updateValues(this);
-
attrset(CRT_colors[METER_TEXT]);
mvaddnstr(y, x, this->caption, w - 1);
attrset(CRT_colors[RESET_COLOR]);
@@ -177,8 +175,6 @@ static void TextMeterMode_draw(Meter* this, int x, int y, ATTR_UNUSED int w) {
static const char BarMeterMode_characters[] = "|#*@$%&.";
static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
- Meter_updateValues(this);
-
w -= 2;
attrset(CRT_colors[METER_TEXT]);
int captionLen = 3;
@@ -326,8 +322,6 @@ static void GraphMeterMode_draw(Meter* this, int x, int y, int w) {
for (int i = 0; i < nValues - 1; i++)
data->values[i] = data->values[i + 1];
- Meter_updateValues(this);
-
double value = 0.0;
for (uint8_t i = 0; i < this->curItems; i++)
value += this->values[i];
@@ -394,8 +388,6 @@ static void LEDMeterMode_draw(Meter* this, int x, int y, int w) {
#endif
LEDMeterMode_digits = LEDMeterMode_digitsAscii;
- Meter_updateValues(this);
-
RichString_begin(out);
Meter_displayBuffer(this, &out);

© 2014-2024 Faster IT GmbH | imprint | privacy policy