From 2a3cbcbc57bbb960e678b40692cffce69c88149b Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 21 Dec 2009 14:06:47 +0000 Subject: Fixed text controls when subtitles are enabled in multilingual SCI01 games svn-id: r46461 --- engines/sci/engine/kgraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci') 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: -- cgit v1.2.3