From 66ba82a451a4f058fcaf51eea81253165ed021ac Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Mon, 29 Nov 2010 22:31:57 +0000 Subject: HUGO: Fix assert in H3 Win when displaying the elephant and the plane svn-id: r54653 --- engines/hugo/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hugo') 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(dx, 0, 320 - x), CLIP(dy, 0, 200 - y)); } /** -- cgit v1.2.3