HUGO: Fix assert in H3 Win when displaying the elephant and the plane

svn-id: r54653
This commit is contained in:
Arnaud Boutonné 2010-11-29 22:31:57 +00:00
parent b1b7ffa1f2
commit 66ba82a451

View File

@ -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));
}
/**