diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.cpp | 2 | ||||
-rw-r--r-- | src/utils/lines.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/lib.cpp b/src/lib.cpp index dc2b1a4..9b3035c 100644 --- a/src/lib.cpp +++ b/src/lib.cpp @@ -95,7 +95,7 @@ void draw() { setupRendering(); // Consolas.setupRendering(); if (MenuRendering::is_menu_open()) { - Font::gz_renderChars("tpgz v0.1a", sprite_offsets[MENU_INDEX].x + 35.0f, 25.0f, cursor_rgba, + Font::gz_renderChars("tpgz v0.1", sprite_offsets[MENU_INDEX].x + 35.0f, 25.0f, cursor_rgba, g_drop_shadows); if (gzIconTex.loadCode == TexCode::TEX_UNLOADED) { diff --git a/src/utils/lines.cpp b/src/utils/lines.cpp index 484a9de..bae291f 100644 --- a/src/utils/lines.cpp +++ b/src/utils/lines.cpp @@ -24,6 +24,11 @@ void render_lines(Line input_lines[], int cursor, int LINES) { max_line_width = max_value_f(max_line_width, Font::get_chars_width(input_lines[i].line)); } + if (LINES <= 15) { + min_line = 0; + max_line = 15; + } + for (int i = 0; i < LINES; i++) { if (cursor > max_line) { max_line = cursor; |