diff options
| author | mniip <mniip@mniip.com> | 2013-09-06 11:04:49 (GMT) |
|---|---|---|
| committer | jacksonmj <mj-pt@jacksonmj.co.uk> | 2013-09-06 12:09:24 (GMT) |
| commit | 8d96f3f6b6a872956cac4217c4a8f56d6316738b (patch) | |
| tree | c61bb42865e38f0befd4ed651fe23789869bae18 /src/graphics/Graphics.cpp | |
| parent | d9089d13c4d7299236da6736480bf9fe967541e2 (diff) | |
| download | powder-8d96f3f6b6a872956cac4217c4a8f56d6316738b.zip powder-8d96f3f6b6a872956cac4217c4a8f56d6316738b.tar.gz | |
fix segfault on wordwrapping a string with a character >=128
Diffstat (limited to 'src/graphics/Graphics.cpp')
| -rw-r--r-- | src/graphics/Graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/Graphics.cpp b/src/graphics/Graphics.cpp index aa00821..c70344b 100644 --- a/src/graphics/Graphics.cpp +++ b/src/graphics/Graphics.cpp @@ -586,7 +586,7 @@ int Graphics::textwidth(const char *s) return x-1; } -int Graphics::CharWidth(char c) +int Graphics::CharWidth(unsigned char c) { return font_data[font_ptrs[(int)c]]; } |
