aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2004-04-06 11:11:10 +0000
committerMax Horn2004-04-06 11:11:10 +0000
commitc7d22d5a6f2610dd12ecf0ce41bec348ecb1cbf0 (patch)
tree2b3433dd688eceda5ffb2721b26b0bec0dd76a5f /common
parentb9738694563ebf1943eb2de819f0c7b0d35aeb40 (diff)
downloadscummvm-rg350-c7d22d5a6f2610dd12ecf0ce41bec348ecb1cbf0.tar.gz
scummvm-rg350-c7d22d5a6f2610dd12ecf0ce41bec348ecb1cbf0.tar.bz2
scummvm-rg350-c7d22d5a6f2610dd12ecf0ce41bec348ecb1cbf0.zip
Fixed Rect(width, height) constructor
svn-id: r13482
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 c9a6a572fd..7eeec875f2 100644
--- a/common/rect.h
+++ b/common/rect.h
@@ -53,7 +53,7 @@ struct Rect {
int16 bottom, right; //!< The point at the bottom right of the rectangle (not part of the 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 w, int16 h) : top(0), left(0), bottom(h), right(w) {}
Rect(int16 x1, int16 y1, int16 x2, int16 y2) : top(y1), left(x1), bottom(y2), right(x2) {
assert(isValidRect());
}