aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFlorian Kagerer2009-04-04 16:41:21 +0000
committerFlorian Kagerer2009-04-04 16:41:21 +0000
commit3efc9ad51eb39b0c8ac8680fc79be1b34767d2dd (patch)
treedbbb2abb85a48c6f5297aba9876d9edb0da4c73c /engines
parent353e0bef7af7bdd642c853add5842c82685d55a0 (diff)
downloadscummvm-rg350-3efc9ad51eb39b0c8ac8680fc79be1b34767d2dd.tar.gz
scummvm-rg350-3efc9ad51eb39b0c8ac8680fc79be1b34767d2dd.tar.bz2
scummvm-rg350-3efc9ad51eb39b0c8ac8680fc79be1b34767d2dd.zip
LOL: correct character portrait positioning for "full screen sequences" (like grey eagle inn) when playing without sub titles
svn-id: r39849
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/gui_lol.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/kyra/gui_lol.cpp b/engines/kyra/gui_lol.cpp
index 10acb63b73..3494de8131 100644
--- a/engines/kyra/gui_lol.cpp
+++ b/engines/kyra/gui_lol.cpp
@@ -500,11 +500,16 @@ void LoLEngine::gui_drawLiveMagicBar(int x, int y, int curPoints, int unk, int m
void LoLEngine::calcCharPortraitXpos() {
int nc = countActiveCharacters();
- // TODO
+ if (_currentControlMode && !textEnabled()) {
+ int t = (280 - (nc * 33)) / (nc + 1);
+ for (int i = 0; i < nc; i++)
+ _activeCharsXpos[i] = i * 33 + t * (i + 1) + 10;
- int t = (235 - (nc * 66)) / (nc + 1);
- for (int i = 0; i < nc; i++)
- _activeCharsXpos[i] = i * 66 + t * (i + 1) + 83;
+ } else {
+ int t = (235 - (nc * 66)) / (nc + 1);
+ for (int i = 0; i < nc; i++)
+ _activeCharsXpos[i] = i * 66 + t * (i + 1) + 83;
+ }
}
void LoLEngine::gui_drawMoneyBox(int pageNum) {