This commit is contained in:
Steven Tracey 2024-11-20 08:46:30 -05:00
parent 9a1b5c37cc
commit 3bfa954b4d
2 changed files with 8 additions and 0 deletions

View File

@ -570,6 +570,13 @@ void Paint_DrawString(UWORD Xstart, UWORD Ystart, const char * pString,
UWORD Xpoint = Xstart;
UWORD Ypoint = Ystart;
Debug("Width: ");
Debug(Paint.Width)
Debug("\n")
Debug("Height: ")
Debug(Paint.Height)
Debug("\n")
if (Xstart > Paint.Width || Ystart > Paint.Height) {
Debug("Paint_DrawString_EN Input exceeds the normal display range\r\n");
return;

View File

@ -31,6 +31,7 @@ int draw() {
const char *confName = "default";
GoString confStr = {confName, strlen(confName)};
const char *code = getCode(confStr);
Debug("Code: %s", code);
Paint_DrawString(5, 5, code, &Font24, WHITE, BLACK);
Paint_DrawRectangle(10, 112, 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_EMPTY);