IT WAS A #DEFINE

This commit is contained in:
2025-06-22 17:19:26 -05:00
parent 9ebe0630e3
commit 0b76b164b4
2 changed files with 2 additions and 4 deletions

View File

@ -27,10 +27,9 @@ void main(void) {
while(!renderShouldExit()) { while(!renderShouldExit()) {
RENDER_FRAME++; RENDER_FRAME++;
renderDraw(); renderDraw();
uiTextboxUpdate();
overworldUpdate(); overworldUpdate();
uiTextboxUpdate();
// Update input for next frame. // Update input for next frame.
inputUpdate(); inputUpdate();

View File

@ -28,8 +28,7 @@
(UI_TEXTBOX_PADDING_Y * 2) \ (UI_TEXTBOX_PADDING_Y * 2) \
) )
// #define UI_TEXTBOX_CHARS_PER_LINE UI_TEXTBOX_WIDTH_INNER / FONT_WIDTH #define UI_TEXTBOX_CHARS_PER_LINE (UI_TEXTBOX_WIDTH_INNER / FONT_WIDTH)
#define UI_TEXTBOX_CHARS_PER_LINE 20
#define UI_TEXTBOX_CHARS_PER_PAGE ( \ #define UI_TEXTBOX_CHARS_PER_PAGE ( \
UI_TEXTBOX_CHARS_PER_LINE * UI_TEXTBOX_LINES_PER_PAGE \ UI_TEXTBOX_CHARS_PER_LINE * UI_TEXTBOX_LINES_PER_PAGE \
) )