mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 12:44:02 +00:00
TRECISION: Fix drawObj condition
This commit is contained in:
parent
d7c3444991
commit
ca1b5346cb
@ -110,7 +110,7 @@ void GraphicsManager::addDirtyRect(Common::Rect rect, bool translateRect) {
|
||||
}
|
||||
|
||||
void GraphicsManager::drawObj(int index, bool mask, Common::Rect drawRect, Common::Rect drawObjRect, bool includeDirtyRect) {
|
||||
if (drawObjRect.left > MAXX || drawObjRect.top > MAXX || drawObjRect.right > MAXX || drawObjRect.bottom > MAXX)
|
||||
if (drawObjRect.left > MAXX || drawObjRect.top > MAXY)
|
||||
return;
|
||||
|
||||
// If we have a valid object, draw it, otherwise erase it
|
||||
|
Loading…
x
Reference in New Issue
Block a user