aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorArnaud Boutonné2010-11-29 22:31:57 +0000
committerArnaud Boutonné2010-11-29 22:31:57 +0000
commit66ba82a451a4f058fcaf51eea81253165ed021ac (patch)
tree948a93d08859a6719a52fad69c00a08a6deba73d /engines
parentb1b7ffa1f245bc969a0dbeec8612436d41e3402b (diff)
downloadscummvm-rg350-66ba82a451a4f058fcaf51eea81253165ed021ac.tar.gz
scummvm-rg350-66ba82a451a4f058fcaf51eea81253165ed021ac.tar.bz2
scummvm-rg350-66ba82a451a4f058fcaf51eea81253165ed021ac.zip
HUGO: Fix assert in H3 Win when displaying the elephant and the plane
svn-id: r54653
Diffstat (limited to 'engines')
-rw-r--r--engines/hugo/display.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp
index f7975df693..fc73acc938 100644
--- a/engines/hugo/display.cpp
+++ b/engines/hugo/display.cpp
@@ -103,7 +103,7 @@ void Screen::displayBackground() {
void Screen::displayRect(int16 x, int16 y, int16 dx, int16 dy) {
debugC(3, kDebugDisplay, "displayRect(%d, %d, %d, %d)", x, y, dx, dy);
- g_system->copyRectToScreen(&_frontBuffer[x + y * 320], 320, x, y, dx, dy);
+ g_system->copyRectToScreen(&_frontBuffer[x + y * 320], 320, x, y, CLIP<int16>(dx, 0, 320 - x), CLIP<int16>(dy, 0, 200 - y));
}
/**