aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/text16.cpp12
1 files changed, 6 insertions, 6 deletions
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) {