Skip to content

Commit

Permalink
makeDetailsMask() blanksAtEnd (q21d)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 15, 2024
1 parent 5e089ee commit 7acc751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre
}
distance = ceil(distance);
blanksAtEnd = (uint8_t)(8 - (unsigned int)(int)numDots / 2);
if (blanksAtEnd > (unsigned int)(int)distance) {
blanksAtEnd -= (uint8_t)distance;
if (blanksAtEnd > (int32_t)distance) {
blanksAtEnd = (uint8_t)(blanksAtEnd - (int32_t)distance);
} else {
blanksAtEnd = 0;
}
Expand Down

0 comments on commit 7acc751

Please sign in to comment.