From 574dd02bc3776916060fd8e9c026fa3930181559 Mon Sep 17 00:00:00 2001 From: Andrew D'Angelo Date: Fri, 9 Jun 2023 16:06:03 -0500 Subject: [PATCH] Lower mono cutoff --- sharp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sharp.c b/sharp.c index 19f61d1..a051f91 100644 --- a/sharp.c +++ b/sharp.c @@ -146,7 +146,9 @@ static size_t sharp_memory_gray8_to_mono_tagged(u8 *buf, int width, int height, // Iterate over each of the 8 grayscale bytes in the chunk // Build up the destination mono byte for (b1 = 0; b1 < 8; b1++) { - if (buf[(line * width) + b8 + b1] & BIT(7)) { + + // Change at what gray level the mono pixel is active here + if (buf[(line * width) + b8 + b1] >= 32) { d |= 0b10000000 >> b1; } }