From fd5ee85e3d77137ec15e37b4944ad0500a812873 Mon Sep 17 00:00:00 2001 From: lukaslw Date: Thu, 19 Jun 2014 19:06:04 +0200 Subject: PRINCE: PrinceEngine::showTexts() - y position fix --- engines/prince/prince.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/prince/prince.cpp') diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index cf187b722b..da6d74a1e8 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -936,9 +936,10 @@ void PrinceEngine::showTexts(Graphics::Surface *screen) { text._x = leftBorderText + wideLine / 2; } + int textSkip = 2; for (uint8 i = 0; i < lines.size(); i++) { int x = text._x - getTextWidth(lines[i].c_str()) / 2; - int y = text._y - (lines.size() - i) * (_font->getFontHeight()); // to fix + int y = text._y - 10 - (lines.size() - i) * (_font->getFontHeight() - textSkip); if (x < 0) { x = 0; } @@ -2204,13 +2205,13 @@ void PrinceEngine::talkHero(int slot, const char *s) { _mainHero->_state = Hero::TALK; _mainHero->_talkTime = time; x = _mainHero->_middleX - _picWindowX; - y = _mainHero->_middleY - _mainHero->_scaledFrameYSize - 10; + y = _mainHero->_middleY - _mainHero->_scaledFrameYSize; } else { text._color = 220; // test this ! _secondHero->_state = Hero::TALK; _secondHero->_talkTime = time; x = _secondHero->_middleX - _picWindowX; - y = _secondHero->_middleY - _secondHero->_scaledFrameYSize - 10; + y = _secondHero->_middleY - _secondHero->_scaledFrameYSize; } text._time = time; // changed by SETSPECVOICE? text._str = s; -- cgit v1.2.3