Skip to content

Commit

Permalink
makeDetailsMask reorder logic (p24a)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 19, 2024
1 parent 13c6f1a commit 7e0ba67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,15 +578,15 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre

mask &= 0xFFFF << blanksAtEnd;

if (roundsUpInAscii) {
if (needsTiebreak) {
if (needsTiebreak) {
if (roundsUpInAscii) {
mask |= 0x0004;
} else if (roundsDownInAscii) {
mask = (mask & 0xFFEF) | 0x0020;
}
} else if (roundsDownInAscii) {
assert(blanksAtStart <= blanksAtEnd);
if (needsTiebreak) {
mask = (mask & 0xFFEF) | 0x0020;
} else if (new->nCellsPainted - prev->nCellsPainted != 1) {
if (new->nCellsPainted - prev->nCellsPainted != 1) {
if (blanksAtEnd < 4 && (uint8_t)(blanksAtStart + blanksAtEnd) >= 4) {
mask = (mask & 0xFFEF) | 0x0020;
}
Expand Down

0 comments on commit 7e0ba67

Please sign in to comment.