From b19a5c52c49b7494fe23e9e791280c4266132d3b Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Sat, 10 Feb 2024 18:31:29 +0800 Subject: [PATCH] makeDetailsMask() (int)new->nCellsPainted (p13) --- Meter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meter.c b/Meter.c index 8e2bb9e81..4c68cf4cb 100644 --- a/Meter.c +++ b/Meter.c @@ -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.