From 3efc9ad51eb39b0c8ac8680fc79be1b34767d2dd Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sat, 4 Apr 2009 16:41:21 +0000 Subject: LOL: correct character portrait positioning for "full screen sequences" (like grey eagle inn) when playing without sub titles svn-id: r39849 --- engines/kyra/gui_lol.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'engines') 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) { -- cgit v1.2.3