aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-06-15 20:23:25 +0000
committerMartin Kiewitz2010-06-15 20:23:25 +0000
commitfea248ae2f0c2659d84bd8ec400530a6c5e5bc22 (patch)
tree15f1e0fb2fd5ec5335f269d844afc30af83165c3 /engines/sci
parent38fc910353009fe14124e1041d34d0df654d3f88 (diff)
downloadscummvm-rg350-fea248ae2f0c2659d84bd8ec400530a6c5e5bc22.tar.gz
scummvm-rg350-fea248ae2f0c2659d84bd8ec400530a6c5e5bc22.tar.bz2
scummvm-rg350-fea248ae2f0c2659d84bd8ec400530a6c5e5bc22.zip
SCI: make umlauts work in kFrameout for sci32
svn-id: r49890
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/frameout.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index d794fad39e..f16f1068a9 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -265,14 +265,15 @@ void GfxFrameout::kernelFrameout() {
uint16 curX = itemEntry->x;
uint16 curY = itemEntry->y;
for (uint32 i = 0; i < text.size(); i++) {
+ unsigned char curChar = text[i];
// TODO: proper text splitting... this is a hack
- if ((text[i] == ' ' && i > 0 && text[i - i] == ' ') || text[i] == '\n' ||
- (curX + font->getCharWidth(text[i]) > _screen->getWidth())) {
+ if ((curChar == ' ' && i > 0 && text[i - i] == ' ') || curChar == '\n' ||
+ (curX + font->getCharWidth(curChar) > _screen->getWidth())) {
curY += font->getHeight();
curX = itemEntry->x;
}
- font->draw(text[i], curY, curX, foreColor, dimmed);
- curX += font->getCharWidth(text[i]);
+ font->draw(curChar, curY, curX, foreColor, dimmed);
+ curX += font->getCharWidth(curChar);
}
delete font;
}