From eb2cc561d60b36dbdb1b2026522bf88b9df2e883 Mon Sep 17 00:00:00 2001 From: Christopher Mosher Date: Thu, 19 Dec 2013 21:59:48 -0500 Subject: [PATCH] fix display of power light --- src/screenimage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screenimage.cpp b/src/screenimage.cpp index 77ba256..60f6923 100644 --- a/src/screenimage.cpp +++ b/src/screenimage.cpp @@ -251,7 +251,7 @@ void ScreenImage::displayHz(int hz) { void ScreenImage::drawPower(bool on) { unsigned int* pn = this->pixels; - pn += (HEIGHT + 5)*(this->screen_pitch / 4) + 5; + pn += (HEIGHT + 5)*SCRW + 5; for (int r = 0; r < POWERD; ++r) { if (r < LABEL_Y || LABEL_Y + 7 <= r) { for (int c = 0; c < POWERD; ++c) { @@ -276,7 +276,7 @@ void ScreenImage::drawPower(bool on) { } } pn -= POWERD; - pn += this->screen_pitch / 4; + pn += SCRW; } notifyObservers(); }