[Scummvm-cvs-logs] SF.net SVN: scummvm:[54653] scummvm/trunk/engines/hugo/display.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Mon Nov 29 23:31:57 CET 2010
Revision: 54653
http://scummvm.svn.sourceforge.net/scummvm/?rev=54653&view=rev
Author: strangerke
Date: 2010-11-29 22:31:57 +0000 (Mon, 29 Nov 2010)
Log Message:
-----------
HUGO: Fix assert in H3 Win when displaying the elephant and the plane
Modified Paths:
--------------
scummvm/trunk/engines/hugo/display.cpp
Modified: scummvm/trunk/engines/hugo/display.cpp
===================================================================
--- scummvm/trunk/engines/hugo/display.cpp 2010-11-29 21:42:37 UTC (rev 54652)
+++ scummvm/trunk/engines/hugo/display.cpp 2010-11-29 22:31:57 UTC (rev 54653)
@@ -103,7 +103,7 @@
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));
}
/**
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list