Skip to content

Commit

Permalink
Merge pull request #8 from lgw4/master
Browse files Browse the repository at this point in the history
Fix for issue #7.
  • Loading branch information
max-horvath committed Feb 13, 2015
2 parents 86753fa + 25b0fd6 commit 8bbfa4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Header.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,16 @@ void Header_draw(Header* this) {
int cols;

attrset(CRT_colors[RESET_COLOR]);
if (COLS>178) cols=178;
if (COLS > 178) {
cols = 178;
} else {
cols = COLS;
}

for (int y = 0; y < height; y++) {
mvhline(y, 0, ' ', COLS);
}

for (int y = (pad / 2), i = 0; i < Vector_size(this->leftMeters); i++) {
Meter* meter = (Meter*) Vector_get(this->leftMeters, i);
meter->draw(meter, pad, y, cols / 2 - (pad * 2 - 1) - 1);
Expand Down

0 comments on commit 8bbfa4b

Please sign in to comment.