[Scummvm-cvs-logs] CVS: scummvm/common rect.h,1.19,1.20
Max Horn
fingolfin at users.sourceforge.net
Tue Apr 6 04:24:08 CEST 2004
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22600
Modified Files:
rect.h
Log Message:
Fixed Rect(width, height) constructor
Index: rect.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/rect.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- rect.h 4 Mar 2004 22:26:31 -0000 1.19
+++ rect.h 6 Apr 2004 11:11:10 -0000 1.20
@@ -53,7 +53,7 @@
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());
}
More information about the Scummvm-git-logs
mailing list