From efb8031b3c38b8d7e2da73725eb60a35554d0508 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Tue, 29 Oct 2013 02:28:25 +0100 Subject: WINTERMUTE: Remove BasePlatform::isRectEmpty (replace with member-call). --- engines/wintermute/math/rect32.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/wintermute/math/rect32.h') diff --git a/engines/wintermute/math/rect32.h b/engines/wintermute/math/rect32.h index f522ab3a35..4eb00b199a 100644 --- a/engines/wintermute/math/rect32.h +++ b/engines/wintermute/math/rect32.h @@ -94,6 +94,10 @@ struct Rect32 { left = right = top = bottom = 0; } + bool isRectEmpty() const { + return (left >= right) || (top >= bottom); + } + void offsetRect(int dx, int dy) { left += dx; top += dy; -- cgit v1.2.3 From d6b9d7de8f4bc8be34ef7456a89ee144172ca5b0 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Tue, 29 Oct 2013 02:55:31 +0100 Subject: WINTERMUTE: Remove BasePlatform::setRect (replace with member-call) --- engines/wintermute/math/rect32.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/wintermute/math/rect32.h') diff --git a/engines/wintermute/math/rect32.h b/engines/wintermute/math/rect32.h index 4eb00b199a..a4a64690e2 100644 --- a/engines/wintermute/math/rect32.h +++ b/engines/wintermute/math/rect32.h @@ -104,6 +104,14 @@ struct Rect32 { right += dx; bottom += dy; } + + void setRect(int32 newLeft, int32 newTop, int32 newRight, int32 newBottom) { + this->left = newLeft; + this->top = newTop; + this->right = newRight; + this->bottom = newBottom; + } + /** * Check if the given rect is equal to this one. * -- cgit v1.2.3