From e0b4ff129d3cbec5119384a7334ea914c6297379 Mon Sep 17 00:00:00 2001 From: lucasew Date: Tue, 23 Jul 2024 11:34:18 -0300 Subject: [PATCH] fix: encoder/terminal: swap symbol colors, readers read more easily when the foreground is the dark color Signed-off-by: lucasew --- encoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encoder.c b/encoder.c index ed9e6a0..fa34528 100644 --- a/encoder.c +++ b/encoder.c @@ -283,8 +283,8 @@ static void set_format(scanner_t* scanner, int ecl, byte mask) void qrc_encode(scanner_t* scanner, const char* data) { - char *black_block_char = scanner->use_netpbm ? "1 " : "██"; - char *white_block_char = scanner->use_netpbm ? "0 " : " "; + char *black_block_char = scanner->use_netpbm ? "1 " : " "; + char *white_block_char = scanner->use_netpbm ? "0 " : "██"; // generate bit stream stream_t stream; stream.a = 0;