diff options
author | Paul Gilbert | 2007-02-10 03:45:06 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-02-10 03:45:06 +0000 |
commit | 64fb3fad3f546e6783d80812ad52ff2c4540a07f (patch) | |
tree | ae5cae726b14f9220317e5468779ffe0b1ec886d /engines/lure | |
parent | 6899e72be9f8c87940168d24ded008007bae0225 (diff) | |
download | scummvm-rg350-64fb3fad3f546e6783d80812ad52ff2c4540a07f.tar.gz scummvm-rg350-64fb3fad3f546e6783d80812ad52ff2c4540a07f.tar.bz2 scummvm-rg350-64fb3fad3f546e6783d80812ad52ff2c4540a07f.zip |
Bugfix to clipping so player's feet aren't visible in the corner of the screen as the chute is exited
svn-id: r25455
Diffstat (limited to 'engines/lure')
-rw-r--r-- | engines/lure/hotspots.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index f5cfa64d43..b17eb1e82e 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -317,13 +317,13 @@ void Hotspot::copyTo(Surface *dest) { // Handle clipping for Y position if (yPos < 0) { - if (yPos + hHeight <= 0) + if (yPos + hHeight <= MENUBAR_Y_SIZE) // Completely off screen, so don't display return; // Reduce the source rectangle to only the on-screen portion - r.top += -yPos; - yPos = 0; + r.top += -(yPos + MENUBAR_Y_SIZE); + yPos = MENUBAR_Y_SIZE; } else if (yPos >= FULL_SCREEN_HEIGHT) return; |