From b29b379894ac09f637218a6bb3f2ecea56a20379 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 17 Apr 2010 23:54:06 +0000 Subject: More const correctness fixes svn-id: r48695 --- engines/sci/graphics/text16.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines') diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp index efbfbde666..cce34ae6b2 100644 --- a/engines/sci/graphics/text16.cpp +++ b/engines/sci/graphics/text16.cpp @@ -164,9 +164,9 @@ int16 GfxText16::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF return 0; while (width <= maxWidth) { - curChar = (*(unsigned char *)text++); + curChar = (*(const byte *)text++); if (_font->isDoubleByte(curChar)) { - curChar |= (*(unsigned char *)text++) << 8; + curChar |= (*(const byte *)text++) << 8; curCharCount++; } switch (curChar) { @@ -217,9 +217,9 @@ void GfxText16::Width(const char *text, int16 from, int16 len, GuiResourceId org if (_font) { text += from; while (len--) { - curChar = (*(unsigned char *)text++); + curChar = (*(const byte *)text++); if (_font->isDoubleByte(curChar)) { - curChar |= (*(unsigned char *)text++) << 8; + curChar |= (*(const byte *)text++) << 8; len--; } switch (curChar) { @@ -304,9 +304,9 @@ void GfxText16::Draw(const char *text, int16 from, int16 len, GuiResourceId orgF rect.bottom = rect.top + _ports->_curPort->fontHeight; text += from; while (len--) { - curChar = (*(unsigned char *)text++); + curChar = (*(const byte *)text++); if (_font->isDoubleByte(curChar)) { - curChar |= (*(unsigned char *)text++) << 8; + curChar |= (*(const byte *)text++) << 8; len--; } switch (curChar) { -- cgit v1.2.3