diff options
author | Alyssa Milburn | 2011-11-25 23:03:18 +0100 |
---|---|---|
committer | Alyssa Milburn | 2011-11-25 23:03:18 +0100 |
commit | 61bac6ed157e364fd4976762f79c1e7bde0b115c (patch) | |
tree | ad3ba29f03a16ccce9fec9d2333781de79bcba0e | |
parent | d070d11c307c8267ba105abd435423ae3df76fc2 (diff) | |
download | scummvm-rg350-61bac6ed157e364fd4976762f79c1e7bde0b115c.tar.gz scummvm-rg350-61bac6ed157e364fd4976762f79c1e7bde0b115c.tar.bz2 scummvm-rg350-61bac6ed157e364fd4976762f79c1e7bde0b115c.zip |
MOHAWK: Convert between rects/points in LB code (thanks clone2727).
-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: |