summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-04 11:23:04 +0200
committer/dev/humancontroller <devhc@example.com>2017-04-06 20:36:00 +0200
commit7cdefa131c9c91b522e575a66ea6504d71141f85 (patch)
tree83a1ad9e62a9c0a6eb3bad30642f9780f5cf2b08
parentc9f934736945acab1822e3956950c63b9743df98 (diff)
fix the incorrect calculation of string/line (display)widths
-rw-r--r--src/ui/ui_shared.c2
1 files changed, 1 insertions, 1 deletions
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;
}