From bc4dbc02d2ffeca03ed728f3f1f31d7cc969f655 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 29 Nov 2024 17:21:47 +0100 Subject: checkpoint --- ui.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 21a4a80..dc09f4c 100644 --- a/ui.h +++ b/ui.h @@ -1,3 +1,6 @@ +#define CHATTY_IMPL +#include "chatty.h" + // Format option at a position in raw text, used when iterating to know when to toggle a color // option. typedef struct { @@ -433,6 +436,7 @@ InputBox(u32 BoxX, u32 BoxY, u32 BoxWidth, u32 BoxHeight, } #ifdef DEBUG +#ifdef MAX_INPUT_LEN tb_printf(BoxX + 1, BoxY, 0, 0, "%d/%d [%dx%d] %dx%d %d (%d,%d)+(%d,%d)", TextLen, MAX_INPUT_LEN, BoxWidth, BoxHeight, @@ -440,6 +444,16 @@ InputBox(u32 BoxX, u32 BoxY, u32 BoxWidth, u32 BoxHeight, TextOffset, TextX, TextY, XOffset, YOffset); +#else + tb_printf(BoxX + 1, BoxY, 0, 0, "%d/%d [%dx%d] %dx%d %d (%d,%d)+(%d,%d)", + TextLen, TextLen, + BoxWidth, BoxHeight, + TextWidth, TextHeight, + TextOffset, + TextX, TextY, + XOffset, YOffset); + +#endif #endif // Set the cursor -- cgit v1.2.3