Skip to content

Commit

Permalink
makeDetailsMask() (int)new->nCellsPainted (p22c)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 18, 2024
1 parent b5dc5ec commit 13c6f1a
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 @@ -522,7 +522,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre
// In case of a tie, display the dot at lower position of the graph,
// i.e. MSB of the "details" data.

double distance = new->topPoint - (new->nCellsPainted - 1);
double distance = new->topPoint - (double)(int)(new->nCellsPainted - 1);
assert(distance > rem);
distance = distance - rem * 0.5;

Expand Down

0 comments on commit 13c6f1a

Please sign in to comment.