TRECISION: Fix drawObj condition

This commit is contained in:
SupSuper 2021-07-27 07:03:44 +01:00
parent d7c3444991
commit ca1b5346cb

View File

@ -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