diff --git a/game/res/textures/cursor.png b/game/res/textures/cursor.png deleted file mode 100644 index a146bad..0000000 Binary files a/game/res/textures/cursor.png and /dev/null differ diff --git a/game/res/textures/cursor.xcf b/game/res/textures/cursor.xcf deleted file mode 100644 index 17774be..0000000 Binary files a/game/res/textures/cursor.xcf and /dev/null differ diff --git a/game/res/textures/font.png b/game/res/textures/font.png index 7296276..8d35677 100644 Binary files a/game/res/textures/font.png and b/game/res/textures/font.png differ diff --git a/game/res/textures/font_10x20.xcf b/game/res/textures/font_10x20.xcf index d9099fd..e3f45dd 100644 Binary files a/game/res/textures/font_10x20.xcf and b/game/res/textures/font_10x20.xcf differ diff --git a/game/src/ui/widget.c b/game/src/ui/widget.c index 138f5ed..2e84ba2 100644 --- a/game/src/ui/widget.c +++ b/game/src/ui/widget.c @@ -123,8 +123,8 @@ Widget_label_render_text (Widget *widget, mat3 parent_model) glm_mat3_copy (parent_model, model); float char_width = wdg_real_height (model) / wdg_real_width (model) * (10.0 / 20.0); - /* * 1.5 because that's the step we use in the loop later on. */ - float total_width = (widget->label.text->len - 1) * char_width * 1.5; + float char_spacing = 1.5; + float total_width = (widget->label.text->len - 1) * char_width * char_spacing; switch (widget->label.alignment) { @@ -158,9 +158,7 @@ Widget_label_render_text (Widget *widget, mat3 parent_model) program_set_float (RESPRG ("uitext"), "character", ch); program_set_vec4 (RESPRG ("uitext"), "text_color", widget->label.text_color); SimpleMesh_render (&quad, false); /* UI always without wireframe. */ - /* 1.5 because we want to go forward half of this character and - one character more. */ - glm_translate2d (model, (vec2) { 1.5f, 0.0f }); + glm_translate2d (model, (vec2) { char_spacing, 0.0 }); p = g_utf8_next_char (p); }