diff options
Diffstat (limited to 'src/emu/rendfont.cpp')
-rw-r--r-- | src/emu/rendfont.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/rendfont.cpp b/src/emu/rendfont.cpp index 70d87856378..9687206f85b 100644 --- a/src/emu/rendfont.cpp +++ b/src/emu/rendfont.cpp @@ -420,11 +420,11 @@ float render_font::string_width(float height, float aspect, const char *string) const char *ends = string + strlen(string); const char *s = string; unicode_char schar; - + // loop over characters while (*s != 0) { - int scharcount = uchar_from_utf8(&schar, s, ends - s); + int scharcount = uchar_from_utf8(&schar, s, ends - s); totwidth += get_char(schar).width; s += scharcount; } |