diff options
| author | Einar Johan Trøan Sømåen | 2013-10-29 02:28:25 +0100 |
|---|---|---|
| committer | Einar Johan Trøan Sømåen | 2013-10-29 02:59:53 +0100 |
| commit | efb8031b3c38b8d7e2da73725eb60a35554d0508 (patch) | |
| tree | 2e5c3ba892d0e72a1f9df37c38252fad86861eba /engines/wintermute/math | |
| parent | 3fb418390910cfb00d8b3dda8da33b8302615b6a (diff) | |
| download | scummvm-rg350-efb8031b3c38b8d7e2da73725eb60a35554d0508.tar.gz scummvm-rg350-efb8031b3c38b8d7e2da73725eb60a35554d0508.tar.bz2 scummvm-rg350-efb8031b3c38b8d7e2da73725eb60a35554d0508.zip | |
WINTERMUTE: Remove BasePlatform::isRectEmpty (replace with member-call).
Diffstat (limited to 'engines/wintermute/math')
| -rw-r--r-- | engines/wintermute/math/rect32.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
