[Scummvm-cvs-logs] CVS: scummvm/common rect.h,1.24,1.25

Andrew Kurushin h00ligan at users.sourceforge.net
Sat May 28 05:29:13 CEST 2005


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10710

Modified Files:
	rect.h 
Log Message:
commit adds setWidth & setHeight to extend bounds of rect

Index: rect.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/rect.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- rect.h	11 Jan 2005 13:25:00 -0000	1.24
+++ rect.h	28 May 2005 12:28:23 -0000	1.25
@@ -72,6 +72,14 @@
 	}
 	int16 width() const { return right - left; }
 	int16 height() const { return bottom - top; }
+	
+	void setWidth(int16 width) {
+		right = left + width;
+	}
+
+	void setHeight(int16 height) {
+		bottom = top + height;
+	}
 
 	/*!	@brief check if given position is inside this rectangle
 





More information about the Scummvm-git-logs mailing list