From 71a4a241aa30ccf6db44c60f8a4535e3b6789441 Mon Sep 17 00:00:00 2001 From: Steven Tracey Date: Wed, 20 Nov 2024 09:09:03 -0500 Subject: [PATCH] Goofy Crosscomp --- c/libs/GUI/GUI_Paint.c | 2 +- c/src/p2fa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/libs/GUI/GUI_Paint.c b/c/libs/GUI/GUI_Paint.c index f375177..0083844 100644 --- a/c/libs/GUI/GUI_Paint.c +++ b/c/libs/GUI/GUI_Paint.c @@ -573,7 +573,7 @@ void Paint_DrawString(UWORD Xstart, UWORD Ystart, const char * pString, Debug("Width: %d\n", Paint.Width); Debug("Height: %d\n", Paint.Height); - if (Xstart > Paint.Width || Ystart > Paint.Height) { + if (Xstart > 250 || Ystart > 122) { Debug("Paint_DrawString_EN Input exceeds the normal display range\r\n"); return; } diff --git a/c/src/p2fa.c b/c/src/p2fa.c index 12658ae..06fe6ad 100644 --- a/c/src/p2fa.c +++ b/c/src/p2fa.c @@ -31,7 +31,7 @@ int draw() { const char *confName = "default"; GoString confStr = {confName, strlen(confName)}; const char *code = getCode(confStr); - Debug("Code: %s", code); + Debug("Code: %s\n", code); Paint_DrawString(5, 5, code, &Font24, WHITE, BLACK); Paint_DrawRectangle(10, 112, 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_EMPTY);