Skip to content

Commit

Permalink
makeDetailsMask() new->nCellsPainted (p5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 11, 2024
1 parent 46b40a1 commit a6f12a9
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 @@ -521,7 +521,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 - (double)(int)(new->nCellsPainted - 1);
double distance = new->topPoint - ((double)(int)new->nCellsPainted - 1.0);
distance = distance - rem * 0.5;

// Tiebreaking direction that may be needed in the ASCII display mode.
Expand Down

0 comments on commit a6f12a9

Please sign in to comment.