Skip to content

Commit

Permalink
makeDetailsMask() tiebreak logic (q27d)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 21, 2024
1 parent 85da71c commit ea57fe5
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 @@ -573,15 +573,15 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre

mask &= 0xFFFFU << blanksAtEnd;

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

0 comments on commit ea57fe5

Please sign in to comment.