From 7cdefa131c9c91b522e575a66ea6504d71141f85 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Tue, 4 Apr 2017 11:23:04 +0200 Subject: fix the incorrect calculation of string/line (display)widths --- src/ui/ui_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c index 7c9e4452..5daf33b7 100644 --- a/src/ui/ui_shared.c +++ b/src/ui/ui_shared.c @@ -2017,9 +2017,9 @@ float UI_Char_Width( const char **text, float scale ) } } + glyph = &font->glyphs[ (int)**text ]; (*text)++; - glyph = &font->glyphs[ (int)**text ]; return glyph->xSkip * DC->aspectScale * scale * font->glyphScale; } -- cgit