Skip to content

Commit

Permalink
makeDetailsMask() blanksAtEnd (q21m)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 18, 2024
1 parent 676f152 commit 1ec7a8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,10 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre

distance = ceil(distance);
unsigned int maxBlanks2 = 8 - (unsigned int)(int)numDots / 2;
unsigned int temp1 = MAXIMUM((unsigned int)maxBlanks2, (unsigned int)(int)distance);
blanksAtEnd = (uint8_t)((unsigned int)temp1 - (unsigned int)(int)distance);
if (maxBlanks2 < (unsigned int)(int)distance) {
maxBlanks2 = (unsigned int)(int)distance;
}
blanksAtEnd = (uint8_t)(maxBlanks2 - (unsigned int)(int)distance);
}
assert(blanksAtEnd < 8);

Expand Down

0 comments on commit 1ec7a8a

Please sign in to comment.