diff options
| author | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-03 19:48:49 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-03 19:48:49 +0100 |
| commit | 3f1aed9d71d10f5a7430b8720c6a1e93630b4477 (patch) | |
| tree | 272d6a65a44a5504a1eb496b6f931800bcb15a83 /src/ui.c | |
| parent | 83cbdcc8c3d1c900417457f2ef44eafde123db93 (diff) | |
translations
Diffstat (limited to 'src/ui.c')
| -rw-r--r-- | src/ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1022,7 +1022,7 @@ void ui_push_textf_width(font *f, char *text, s32 maxw) s32 text_y = y + (BLOCK_HEIGHT/2) - (f->px_h/2) + spacing_y; s32 total_w = maxw + WIDGET_PADDING + WIDGET_PADDING; - + maxw -= (WIDGET_PADDING*2); if (global_ui_context.layout.block_height < f->px_h) global_ui_context.layout.block_height = f->px_h+5; @@ -1097,7 +1097,7 @@ bool ui_push_text_width(char *text, s32 maxw, bool active) if (global_ui_context.layout.block_height < global_ui_context.font_small->px_h) global_ui_context.layout.block_height = global_ui_context.font_small->px_h+5; - + maxw -= (WIDGET_PADDING*2); if (active) { bool hovered = false; |
