Skip to content

Commit

Permalink
makeDetailsMask() blanksAtEnd floats (q15b)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 13, 2024
1 parent 28ad821 commit 5e02024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre
double fraction = numDots * 0.5;
fraction -= (int)fraction;
distance = ceil(distance * 8.0 - fraction);
blanksAtEnd = (uint8_t)MAXIMUM(8.0 - distance - (double)(int)(numDots * 0.5), 0.0);
blanksAtEnd = (uint8_t)MAXIMUM(8.0 - distance, (double)(int)(numDots * 0.5)) - (double)(int)(numDots * 0.5);
}
assert(blanksAtEnd < 8);

Expand Down

0 comments on commit 5e02024

Please sign in to comment.