aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-05-15 22:27:09 +0000
committerMax Horn2003-05-15 22:27:09 +0000
commit050358bc7fcaab2ba2821b0fd5b28e02bac2a0e6 (patch)
tree92f85dc5a6b6375c098704ab35d4b1cad0db17d0
parentb34318ca5577aee75f0c86a783a11a45de4886e5 (diff)
downloadscummvm-rg350-050358bc7fcaab2ba2821b0fd5b28e02bac2a0e6.tar.gz
scummvm-rg350-050358bc7fcaab2ba2821b0fd5b28e02bac2a0e6.tar.bz2
scummvm-rg350-050358bc7fcaab2ba2821b0fd5b28e02bac2a0e6.zip
oops
svn-id: r7545
-rw-r--r--common/rect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rect.h b/common/rect.h
index ca4b7f0c3e..7d2098a2bf 100644
--- a/common/rect.h
+++ b/common/rect.h
@@ -55,7 +55,7 @@ struct Rect {
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) {}
int16 width() const { return right - left; }
- int16 height() const { return top - bottom; }
+ int16 height() const { return bottom - top; }
/*! @brief check if given position is inside this rectangle