aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2003-05-23 17:01:35 +0000
committerMax Horn2003-05-23 17:01:35 +0000
commitad4eb360930972a00b8648173045b5d25def0883 (patch)
tree34c7c54b8e681e4dc8fa5ea9d9e2a6922b316b6f /common
parent0439e0fe5873f746e6dd7f942d9a6be1a209db30 (diff)
downloadscummvm-rg350-ad4eb360930972a00b8648173045b5d25def0883.tar.gz
scummvm-rg350-ad4eb360930972a00b8648173045b5d25def0883.tar.bz2
scummvm-rg350-ad4eb360930972a00b8648173045b5d25def0883.zip
oops, fixed ScummVM::Rect constructor (this fixes various string redraw bugs)
svn-id: r7868
Diffstat (limited to 'common')
-rw-r--r--common/rect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rect.h b/common/rect.h
index 7d2098a2bf..99191bf3a2 100644
--- a/common/rect.h
+++ b/common/rect.h
@@ -53,7 +53,7 @@ struct Rect {
Rect() : top(0), left(0), bottom(0), right(0) {}
Rect(int16 x, int16 y) : top(0), left(0), bottom(x), right(y) {}
- Rect(int16 x1, int16 y1, int16 x2, int16 y2) : top(x1), left(y1), bottom(x2), right(y2) {}
+ Rect(int16 x1, int16 y1, int16 x2, int16 y2) : top(y1), left(x1), bottom(y2), right(x2) {}
int16 width() const { return right - left; }
int16 height() const { return bottom - top; }