diff options
author | lukaslw | 2014-06-19 19:06:04 +0200 |
---|---|---|
committer | lukaslw | 2014-06-22 20:09:21 +0200 |
commit | fd5ee85e3d77137ec15e37b4944ad0500a812873 (patch) | |
tree | c16da725153fbb9dff570fb81e85e207c6e7304d /engines/prince | |
parent | c8046f85915d5a02742f16decb60568ee448a246 (diff) | |
download | scummvm-rg350-fd5ee85e3d77137ec15e37b4944ad0500a812873.tar.gz scummvm-rg350-fd5ee85e3d77137ec15e37b4944ad0500a812873.tar.bz2 scummvm-rg350-fd5ee85e3d77137ec15e37b4944ad0500a812873.zip |
PRINCE: PrinceEngine::showTexts() - y position fix
Diffstat (limited to 'engines/prince')
-rw-r--r-- | engines/prince/prince.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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; |