diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-29 17:21:47 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-11-29 17:21:47 +0100 |
commit | bc4dbc02d2ffeca03ed728f3f1f31d7cc969f655 (patch) | |
tree | c0a429fb8a419b3bab00834c0a4d30130b42520f /ui.h | |
parent | 51de26be505c781dd17e4c1ff90dd1f4c46899b9 (diff) |
checkpoint
Diffstat (limited to 'ui.h')
-rw-r--r-- | ui.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |