IT WAS A #DEFINE
This commit is contained in:
@ -27,10 +27,9 @@ void main(void) {
|
||||
while(!renderShouldExit()) {
|
||||
RENDER_FRAME++;
|
||||
renderDraw();
|
||||
uiTextboxUpdate();
|
||||
|
||||
overworldUpdate();
|
||||
|
||||
uiTextboxUpdate();
|
||||
|
||||
// Update input for next frame.
|
||||
inputUpdate();
|
||||
|
@ -28,8 +28,7 @@
|
||||
(UI_TEXTBOX_PADDING_Y * 2) \
|
||||
)
|
||||
|
||||
// #define UI_TEXTBOX_CHARS_PER_LINE UI_TEXTBOX_WIDTH_INNER / FONT_WIDTH
|
||||
#define UI_TEXTBOX_CHARS_PER_LINE 20
|
||||
#define UI_TEXTBOX_CHARS_PER_LINE (UI_TEXTBOX_WIDTH_INNER / FONT_WIDTH)
|
||||
#define UI_TEXTBOX_CHARS_PER_PAGE ( \
|
||||
UI_TEXTBOX_CHARS_PER_LINE * UI_TEXTBOX_LINES_PER_PAGE \
|
||||
)
|
||||
|
Reference in New Issue
Block a user