Testing
This commit is contained in:
parent
9a1b5c37cc
commit
3bfa954b4d
@ -570,6 +570,13 @@ void Paint_DrawString(UWORD Xstart, UWORD Ystart, const char * pString,
|
|||||||
UWORD Xpoint = Xstart;
|
UWORD Xpoint = Xstart;
|
||||||
UWORD Ypoint = Ystart;
|
UWORD Ypoint = Ystart;
|
||||||
|
|
||||||
|
Debug("Width: ");
|
||||||
|
Debug(Paint.Width)
|
||||||
|
Debug("\n")
|
||||||
|
Debug("Height: ")
|
||||||
|
Debug(Paint.Height)
|
||||||
|
Debug("\n")
|
||||||
|
|
||||||
if (Xstart > Paint.Width || Ystart > Paint.Height) {
|
if (Xstart > Paint.Width || Ystart > Paint.Height) {
|
||||||
Debug("Paint_DrawString_EN Input exceeds the normal display range\r\n");
|
Debug("Paint_DrawString_EN Input exceeds the normal display range\r\n");
|
||||||
return;
|
return;
|
||||||
|
@ -31,6 +31,7 @@ int draw() {
|
|||||||
const char *confName = "default";
|
const char *confName = "default";
|
||||||
GoString confStr = {confName, strlen(confName)};
|
GoString confStr = {confName, strlen(confName)};
|
||||||
const char *code = getCode(confStr);
|
const char *code = getCode(confStr);
|
||||||
|
Debug("Code: %s", code);
|
||||||
Paint_DrawString(5, 5, code, &Font24, WHITE, BLACK);
|
Paint_DrawString(5, 5, code, &Font24, WHITE, BLACK);
|
||||||
|
|
||||||
Paint_DrawRectangle(10, 112, 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_EMPTY);
|
Paint_DrawRectangle(10, 112, 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_EMPTY);
|
||||||
|
Loading…
Reference in New Issue
Block a user