From 75a2d868b1fee5b6de7270a0035cd1c1d37031ad Mon Sep 17 00:00:00 2001 From: Lorenzo Carletti Date: Mon, 17 Jan 2022 06:13:35 +0100 Subject: [PATCH] Add missing condition for IS_NEWLINE --- src/c/custom_codes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c/custom_codes.c b/src/c/custom_codes.c index dafcff0..8bb75a0 100644 --- a/src/c/custom_codes.c +++ b/src/c/custom_codes.c @@ -133,7 +133,7 @@ int custom_codes_parse_generic(int code, char* parserAddress, WINDOW* window, by case IS_NEWLINE: // 5E FF 06 : Load whether it's a newline or not - val_to_store = (window->text_y != 0) && (window->pixel_x == 0) ? 1 : 2; + val_to_store = (window->text_y != 0) && (window->pixel_x == 0) && (window->text_x == 0) ? 1 : 2; store = true; break;