[Scummvm-git-logs] scummvm master -> 600545883fc8754e4b7432f2d74b53be282d86a0
mgerhardy
martin.gerhardy at gmail.com
Thu Jan 7 22:15:44 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
600545883f TWINE: fixed position of behaviour text in high res mode
Commit: 600545883fc8754e4b7432f2d74b53be282d86a0
https://github.com/scummvm/scummvm/commit/600545883fc8754e4b7432f2d74b53be282d86a0
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2021-01-07T23:13:19+01:00
Commit Message:
TWINE: fixed position of behaviour text in high res mode
Changed paths:
engines/twine/menu/menu.cpp
diff --git a/engines/twine/menu/menu.cpp b/engines/twine/menu/menu.cpp
index 1a7054d657..685ef89ef1 100644
--- a/engines/twine/menu/menu.cpp
+++ b/engines/twine/menu/menu.cpp
@@ -921,7 +921,7 @@ void Menu::drawBehaviour(HeroBehaviourType behaviour, int32 angle, bool cantDraw
char dialText[256];
_engine->_text->getMenuText(_engine->_actor->getTextIdForBehaviour(), dialText, sizeof(dialText));
- _engine->_text->drawText(_engine->width() / 2 - _engine->_text->getTextSize(dialText) / 2, titleBoxTop + 1, dialText);
+ _engine->_text->drawText(640 / 2 - _engine->_text->getTextSize(dialText) / 2, titleBoxTop + 1, dialText);
_engine->copyBlockPhys(titleRect);
} else {
_engine->_interface->drawSplittedBox(boxRect, 0);
More information about the Scummvm-git-logs
mailing list