Skip to content

Commit

Permalink
makeDetailsMask optimization (j12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 9, 2024
1 parent 3563f5c commit a61ad81
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 @@ -527,7 +527,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 fraction = maxBlanks - (int)maxBlanks;
double distance = maxBlanks + ((double)(int)prev->nCellsPainted - prevTopPoint) * 8.0 + (1.0 - fraction) * 0.5;
double distance = maxBlanks + ((double)(int)prev->nCellsPainted - prevTopPoint) * 8.0 + (0.5 - fraction * 0.5);
if (distance <= 0.0)
distance = 0.0;

Expand Down

0 comments on commit a61ad81

Please sign in to comment.