Skip to content

Commit

Permalink
fix display of power light
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi-appstatus committed Dec 20, 2013
1 parent de4c188 commit eb2cc56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screenimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -276,7 +276,7 @@ void ScreenImage::drawPower(bool on) {
}
}
pn -= POWERD;
pn += this->screen_pitch / 4;
pn += SCRW;
}
notifyObservers();
}
Expand Down

0 comments on commit eb2cc56

Please sign in to comment.