aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-12-21 14:06:47 +0000
committerFilippos Karapetis2009-12-21 14:06:47 +0000
commit2a3cbcbc57bbb960e678b40692cffce69c88149b (patch)
treebdc104515dbebe095f3c25f710137c3403a7ef8e /engines
parente86a16a64196fdca4a5522282a23969271aebd9a (diff)
downloadscummvm-rg350-2a3cbcbc57bbb960e678b40692cffce69c88149b.tar.gz
scummvm-rg350-2a3cbcbc57bbb960e678b40692cffce69c88149b.tar.bz2
scummvm-rg350-2a3cbcbc57bbb960e678b40692cffce69c88149b.zip
Fixed text controls when subtitles are enabled in multilingual SCI01 games
svn-id: r46461
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kgraphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 4f7db7cf34..0a836f581d 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -722,7 +722,7 @@ void _k_GenericDrawControl(EngineState *s, reg_t controlObject, bool hilite) {
case SCI_CONTROLS_TYPE_TEXT:
alignment = GET_SEL32V(s->_segMan, controlObject, mode);
debugC(2, kDebugLevelGraphics, "drawing text %04x:%04x ('%s') to %d,%d, mode=%d\n", PRINT_REG(controlObject), text.c_str(), x, y, alignment);
- s->_gui->drawControlText(rect, controlObject, s->strSplit(text.c_str(), NULL).c_str(), fontId, alignment, style, hilite);
+ s->_gui->drawControlText(rect, controlObject, s->strSplit(text.c_str()).c_str(), fontId, alignment, style, hilite);
return;
case SCI_CONTROLS_TYPE_TEXTEDIT: