diff options
-rw-r--r-- | engines/mohawk/livingbooks_code.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks_code.cpp b/engines/mohawk/livingbooks_code.cpp index 00b07dffff..c0c03e0e9b 100644 --- a/engines/mohawk/livingbooks_code.cpp +++ b/engines/mohawk/livingbooks_code.cpp @@ -105,6 +105,8 @@ Common::Point LBValue::toPoint() const { return Common::Point(integer, integer); case kLBValuePoint: return point; + case kLBValueRect: + return Common::Point(rect.left, rect.top); default: error("failed to convert to point"); } @@ -117,6 +119,8 @@ Common::Rect LBValue::toRect() const { return Common::Rect(); case kLBValueInteger: return Common::Rect(integer, integer, integer, integer); + case kLBValuePoint: + return Common::Rect(point.x, point.y, point.x, point.y); case kLBValueRect: return rect; case kLBValueItemPtr: |