mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 18:24:59 +00:00
HUGO: Fix assert in H3 Win when displaying the elephant and the plane
svn-id: r54653
This commit is contained in:
parent
b1b7ffa1f2
commit
66ba82a451
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user