diff options
author | D G Turner | 2012-07-31 14:54:48 +0100 |
---|---|---|
committer | D G Turner | 2012-07-31 14:54:48 +0100 |
commit | 6949b30146c10ea1307eaa3337fc536cecafcd94 (patch) | |
tree | fddf2353751b249e297181c6ee40cbcfb3c9e303 | |
parent | d62bb98659356a9c292d759c62bafbb07babbaf8 (diff) | |
download | scummvm-rg350-6949b30146c10ea1307eaa3337fc536cecafcd94.tar.gz scummvm-rg350-6949b30146c10ea1307eaa3337fc536cecafcd94.tar.bz2 scummvm-rg350-6949b30146c10ea1307eaa3337fc536cecafcd94.zip |
TEENAGENT: Fix likely cut-and-paste error in Message positioning code.
-rw-r--r-- | engines/teenagent/scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 8f5506b059..e2f038c005 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -1205,7 +1205,7 @@ Common::Point Scene::messagePosition(const Common::String &str, Common::Point me message_position.x = screenWidth - w; if (message_position.x < 0) message_position.x = 0; - if (message_position.y + h > screenWidth) // FIXME - Error? Should be screenHeight? + if (message_position.y + h > screenHeight) message_position.y = screenHeight - h; if (message_position.y < 0) message_position.y = 0; |