aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/font
diff options
context:
space:
mode:
authorJohannes Schickel2013-01-09 08:15:59 +0100
committerJohannes Schickel2013-01-09 08:18:05 +0100
commit4a7ddc6956e14b21704d7dac01a28aa3e28813ab (patch)
tree53cbed66f938d96bed6b8b9320e257b1311759c2 /engines/wintermute/base/font
parent0d934df9fc4449821b0bf8c8174b40136de20659 (diff)
downloadscummvm-rg350-4a7ddc6956e14b21704d7dac01a28aa3e28813ab.tar.gz
scummvm-rg350-4a7ddc6956e14b21704d7dac01a28aa3e28813ab.tar.bz2
scummvm-rg350-4a7ddc6956e14b21704d7dac01a28aa3e28813ab.zip
WINTERMUTE: Fix const away cast warning.
Diffstat (limited to 'engines/wintermute/base/font')
-rw-r--r--engines/wintermute/base/font/base_font_truetype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/font/base_font_truetype.cpp b/engines/wintermute/base/font/base_font_truetype.cpp
index 47506089b4..0ed7b7c0a8 100644
--- a/engines/wintermute/base/font/base_font_truetype.cpp
+++ b/engines/wintermute/base/font/base_font_truetype.cpp
@@ -162,7 +162,7 @@ void BaseFontTT::drawText(const byte *text, int x, int y, int width, TTextAlign
// HACK: J.U.L.I.A. uses CP1252, we need to fix that,
// And we still don't have any UTF8-support.
if (_gameRef->_textEncoding != TEXT_UTF8) {
- textStr = StringUtil::ansiToWide((char *)text);
+ textStr = StringUtil::ansiToWide((const char *)text);
}
if (maxLength >= 0 && textStr.size() > (uint32)maxLength) {