Skip to content

Commit

Permalink
makeDetailsMask() bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Jan 20, 2024
1 parent 3bfd0e3 commit abe9f73
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 @@ -485,7 +485,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre

bool isItemOnEdge = (blanksAtTopCell >= 0 || prev->nCellsPainted == 0);
const uint8_t dotAlignment = 2;
if (isItemOnEdge && rem < (0.125 * dotAlignment))
if (isItemOnEdge && rem > 0.0 && rem < (0.125 * dotAlignment))
rem = (0.125 * dotAlignment);

uint8_t blanksAtEnd;
Expand Down

0 comments on commit abe9f73

Please sign in to comment.