diff options
author | Martin Kiewitz | 2009-11-29 13:42:14 +0000 |
---|---|---|
committer | Martin Kiewitz | 2009-11-29 13:42:14 +0000 |
commit | bdddab7bd75b32767ce8c612f557163759221736 (patch) | |
tree | f6e8bccdbbc409061054d8c05e5fc50c3718e9e9 /engines/sci/gui | |
parent | 64d76a9e5ab1cff905d5a8275ac0a0c28079e538 (diff) | |
download | scummvm-rg350-bdddab7bd75b32767ce8c612f557163759221736.tar.gz scummvm-rg350-bdddab7bd75b32767ce8c612f557163759221736.tar.bz2 scummvm-rg350-bdddab7bd75b32767ce8c612f557163759221736.zip |
SCI/newgui: handling of right aligned menu text changed
svn-id: r46193
Diffstat (limited to 'engines/sci/gui')
-rw-r--r-- | engines/sci/gui/gui_menu.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/gui/gui_menu.cpp b/engines/sci/gui/gui_menu.cpp index 55688ab473..106922603c 100644 --- a/engines/sci/gui/gui_menu.cpp +++ b/engines/sci/gui/gui_menu.cpp @@ -191,9 +191,10 @@ void SciGuiMenu::add(Common::String title, Common::String content, reg_t content if (rightAlignedPos) { rightAlignedPos++; tempPos = endPos; - //if (tagPos) - if (tagPos && tagPos >= rightAlignedPos) // FIXME: sanity check for LB1 and KQ4 - tempPos = tagPos; + // Shouldnt be needed at all, cause right aligned occurs after tag (hopefully) + // If no game is found that causes problems, remove this line (29.11.2009) + //if (tagPos && tagPos >= rightAlignedPos) + // tempPos = tagPos; itemEntry->textRightAligned = Common::String(content.c_str() + rightAlignedPos, tempPos - rightAlignedPos); } |