[Scummvm-cvs-logs] scummvm master -> ab3cf625d59430d9b7496b0437d6a08e33698d58
dreammaster
dreammaster at scummvm.org
Wed Nov 13 02:17:34 CET 2013
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:
ab3cf625d5 TSAGE: Fix for positioning R2R text to account for screen boundary
Commit: ab3cf625d59430d9b7496b0437d6a08e33698d58
https://github.com/scummvm/scummvm/commit/ab3cf625d59430d9b7496b0437d6a08e33698d58
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2013-11-12T17:16:55-08:00
Commit Message:
TSAGE: Fix for positioning R2R text to account for screen boundary
Changed paths:
engines/tsage/core.cpp
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 877d866..f2744d5 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -1732,9 +1732,13 @@ void SceneItem::display(int resNum, int lineNum, ...) {
font.setFontNumber(g_globals->_sceneText._fontNumber);
font.getStringBounds(msg.c_str(), textRect, maxWidth);
+ Rect screenBounds = g_globals->gfxManager()._bounds;
+ if (g_vm->getGameID() == GType_Ringworld2)
+ screenBounds.collapse(20, 15);
+
// Center the text at the specified position, and then constrain it to be-
textRect.center(pos.x, pos.y);
- textRect.contain(g_globals->gfxManager()._bounds);
+ textRect.contain(screenBounds);
if (centerText) {
g_globals->_sceneText._color1 = g_globals->_sceneText._color2;
More information about the Scummvm-git-logs
mailing list