diff options
Diffstat (limited to 'engines/macventure/macventure.cpp')
-rw-r--r-- | engines/macventure/macventure.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/macventure/macventure.cpp b/engines/macventure/macventure.cpp index 28bfa65a98..211ba43971 100644 --- a/engines/macventure/macventure.cpp +++ b/engines/macventure/macventure.cpp @@ -864,8 +864,9 @@ Common::Rect MacVentureEngine::getObjBounds(ObjID objID) { pos.x += bounds.leftOffset; pos.y += bounds.topOffset; } - uint w = _gui->getObjWidth(objID); // This shouldn't go here - uint h = _gui->getObjHeight(objID); + Common::Point measures = _gui->getObjMeasures(objID); + uint w = measures.x; + uint h = measures.y; return Common::Rect(pos.x, pos.y, pos.x + w, pos.y + h); } |