From 094308ce0bcda919acb1259be8836f486a8e13c1 Mon Sep 17 00:00:00 2001 From: hkc Date: Mon, 30 Sep 2024 13:41:31 +0300 Subject: [PATCH] There's no fucking way it just worked lol --- img2cpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/img2cpi.c b/img2cpi.c index f6dd640..29907f9 100644 --- a/img2cpi.c +++ b/img2cpi.c @@ -264,7 +264,7 @@ int main(int argc, char **argv) { for (int ox = 0; ox < 8; ox++) { bool lit = sym_line & (0x80 >> ox); union color pixel = palette[quantized_image->pixels[ - x * 8 + ox + (y * 11 + oy) * args.width + ox + (x + (y * 11 + oy) * args.width) * 8 ]]; difference += get_color_difference(pixel, lit ? cell_fg : cell_bg); }