[Scummvm-cvs-logs] SF.net SVN: scummvm:[46337] scummvm/trunk/engines/teenagent/objects.h

megath at users.sourceforge.net megath at users.sourceforge.net
Sat Dec 12 12:53:51 CET 2009


Revision: 46337
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46337&view=rev
Author:   megath
Date:     2009-12-12 11:53:44 +0000 (Sat, 12 Dec 2009)

Log Message:
-----------
added Rect ctor from Common::Rect

Modified Paths:
--------------
    scummvm/trunk/engines/teenagent/objects.h

Modified: scummvm/trunk/engines/teenagent/objects.h
===================================================================
--- scummvm/trunk/engines/teenagent/objects.h	2009-12-12 10:57:38 UTC (rev 46336)
+++ scummvm/trunk/engines/teenagent/objects.h	2009-12-12 11:53:44 UTC (rev 46337)
@@ -37,7 +37,7 @@
 	int16 left, top, right, bottom;
 
 	inline Rect() : left(0), top(0), right(0), bottom(0), _base(NULL) {}
-
+	inline Rect(const Common::Rect &r) : left(r.left), top(r.top), right(r.right), bottom(r.bottom), _base(NULL) {}
 	inline Rect(uint16 l, uint16 t, uint16 r, uint16 b) : left(l), top(t), right(r), bottom(b), _base(NULL) {}
 
 	inline bool in(const Common::Point &point) const {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list