aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel/scalpel_talk.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-09-12 17:42:17 -0400
committerPaul Gilbert2015-09-12 17:42:17 -0400
commite4aef79e95f80706df062402518af9cc4c68f95e (patch)
tree61ac1697c514284ae4bb958d2de4df3bce890a72 /engines/sherlock/scalpel/scalpel_talk.cpp
parent9dcf97940d2d1200ee0b6511849b8196c2bcebc7 (diff)
downloadscummvm-rg350-e4aef79e95f80706df062402518af9cc4c68f95e.tar.gz
scummvm-rg350-e4aef79e95f80706df062402518af9cc4c68f95e.tar.bz2
scummvm-rg350-e4aef79e95f80706df062402518af9cc4c68f95e.zip
SHERLOCK: 3DO: Tweak clipping to keep portrait videos on-screen
Diffstat (limited to 'engines/sherlock/scalpel/scalpel_talk.cpp')
-rw-r--r--engines/sherlock/scalpel/scalpel_talk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/scalpel/scalpel_talk.cpp b/engines/sherlock/scalpel/scalpel_talk.cpp
index 2dca5a59a0..88a718ea4e 100644
--- a/engines/sherlock/scalpel/scalpel_talk.cpp
+++ b/engines/sherlock/scalpel/scalpel_talk.cpp
@@ -673,8 +673,8 @@ Common::Point ScalpelTalk::get3doPortraitPosition() const {
// Adjust the top-left so the center of the portrait will be on the character,
// but ensure the portrait will be entirely on-screen
pt -= Common::Point(PORTRAIT_W / 2, PORTRAIT_H / 2);
- pt.x = CLIP((int)pt.x, 20, SHERLOCK_SCREEN_WIDTH - 20 - PORTRAIT_W);
- pt.y = CLIP((int)pt.y, 20, SHERLOCK_SCREEN_HEIGHT - 20 - PORTRAIT_H);
+ pt.x = CLIP((int)pt.x, 10, SHERLOCK_SCREEN_WIDTH - 10 - PORTRAIT_W);
+ pt.y = CLIP((int)pt.y, 10, CONTROLS_Y - PORTRAIT_H - 10);
return pt;
}