[Scummvm-cvs-logs] scummvm master -> 4a7ddc6956e14b21704d7dac01a28aa3e28813ab

lordhoto lordhoto at gmail.com
Wed Jan 9 08:19:12 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4a7ddc6956 WINTERMUTE: Fix const away cast warning.


Commit: 4a7ddc6956e14b21704d7dac01a28aa3e28813ab
    https://github.com/scummvm/scummvm/commit/4a7ddc6956e14b21704d7dac01a28aa3e28813ab
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2013-01-08T23:18:05-08:00

Commit Message:
WINTERMUTE: Fix const away cast warning.

Changed paths:
    engines/wintermute/base/font/base_font_truetype.cpp



diff --git a/engines/wintermute/base/font/base_font_truetype.cpp b/engines/wintermute/base/font/base_font_truetype.cpp
index 4750608..0ed7b7c 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) {






More information about the Scummvm-git-logs mailing list