Skip to content

Commit

Permalink
makeDetailsMask() (int)new->nCellsPainted (p22b)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 18, 2024
1 parent 89ac971 commit b5dc5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre
roundsUpInAscii = true;
} else if (prev->nCellsPainted == 0 || prev->topPoint <= (double)(int)prev->nCellsPainted) {
blanksAtEnd = (uint8_t)maxBlanks % 8;
} else if (new->nCellsPainted > new->topPoint) {
} else if ((double)(int)new->nCellsPainted > new->topPoint) {
assert(new->nCellsPainted - new->topPoint < 1.0);
assert(rem > 0.0);
// Unlike other conditions, this one rounds to nearest for visual reason.
Expand Down

0 comments on commit b5dc5ec

Please sign in to comment.