aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/graphics/menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp
index 42ae4de1ff..50f87e6e6c 100644
--- a/engines/sci/graphics/menu.cpp
+++ b/engines/sci/graphics/menu.cpp
@@ -338,7 +338,7 @@ void GfxMenu::calculateTextWidth() {
menuIterator = _list.begin();
while (menuIterator != menuEnd) {
menuEntry = *menuIterator;
- menuEntry->textSplit = g_sci->strSplit(menuEntry->text.c_str());
+ menuEntry->textSplit = g_sci->strSplit(menuEntry->text.c_str(), NULL);
_text16->StringWidth(menuEntry->textSplit.c_str(), 0, menuEntry->textWidth, dummyHeight);
menuIterator++;
@@ -348,7 +348,7 @@ void GfxMenu::calculateTextWidth() {
while (itemIterator != itemEnd) {
itemEntry = *itemIterator;
// Split the text now for multilingual SCI01 games
- itemEntry->textSplit = g_sci->strSplit(itemEntry->text.c_str());
+ itemEntry->textSplit = g_sci->strSplit(itemEntry->text.c_str(), NULL);
_text16->StringWidth(itemEntry->textSplit.c_str(), 0, itemEntry->textWidth, dummyHeight);
_text16->StringWidth(itemEntry->textRightAligned.c_str(), 0, itemEntry->textRightAlignedWidth, dummyHeight);