Skip to content

Commit

Permalink
makeDetailsMask reorder logic (q24b)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 19, 2024
1 parent c040fb7 commit 1c2b19d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,12 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre
}
} else if (roundsDownInAscii) {
assert(blanksAtStart <= blanksAtEnd);
if (new->nCellsPainted - prev->nCellsPainted != 1) {
if (blanksAtEnd < 4 && (uint8_t)(blanksAtStart + blanksAtEnd) >= 4) {
mask = (mask & 0xFFEF) | 0x0020;
}
if ((mask & 0xBFFF) == 0x3FF8) {
assert(new->nCellsPainted - prev->nCellsPainted > 1);
assert(blanksAtEnd < 4);
assert(blanksAtStart + blanksAtEnd >= 4);

mask = (mask & 0xFFEF) | 0x0020;
}
}

Expand Down

0 comments on commit 1c2b19d

Please sign in to comment.