Skip to content

Commit

Permalink
makeDetailsMask() (int)new->nCellsPainted (p13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 13, 2024
1 parent 3db9653 commit b19a5c5
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 - (new->nCellsPainted - 1);
double distance = new->topPoint - (double)(int)(new->nCellsPainted - 1);
distance = distance - rem * 0.5;

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

0 comments on commit b19a5c5

Please sign in to comment.