From e4aef79e95f80706df062402518af9cc4c68f95e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 12 Sep 2015 17:42:17 -0400 Subject: SHERLOCK: 3DO: Tweak clipping to keep portrait videos on-screen --- engines/sherlock/scalpel/scalpel_talk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sherlock/scalpel/scalpel_talk.cpp') 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; } -- cgit v1.2.3