IT WAS A #DEFINE
This commit is contained in:
@ -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();
|
||||||
|
@ -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 \
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user