Lower mono cutoff

This commit is contained in:
Andrew D'Angelo 2023-06-09 16:06:03 -05:00
parent 656065160c
commit 574dd02bc3

View File

@ -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 // Iterate over each of the 8 grayscale bytes in the chunk
// Build up the destination mono byte // Build up the destination mono byte
for (b1 = 0; b1 < 8; b1++) { 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; d |= 0b10000000 >> b1;
} }
} }