[Scummvm-cvs-logs] SF.net SVN: scummvm:[43109] scummvm/branches/gsoc2009-draci/engines/draci

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Sat Aug 8 05:17:18 CEST 2009


Revision: 43109
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43109&view=rev
Author:   dkasak13
Date:     2009-08-08 03:17:18 +0000 (Sat, 08 Aug 2009)

Log Message:
-----------
Implemented Surface::getRect().

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/surface.cpp
    scummvm/branches/gsoc2009-draci/engines/draci/surface.h

Modified: scummvm/branches/gsoc2009-draci/engines/draci/surface.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/surface.cpp	2009-08-08 02:23:40 UTC (rev 43108)
+++ scummvm/branches/gsoc2009-draci/engines/draci/surface.cpp	2009-08-08 03:17:18 UTC (rev 43109)
@@ -168,4 +168,12 @@
 	return newY;
 }
 
+/**
+ * @brief Returns a Common::Rect corresponding to the surface.
+ */
+
+Common::Rect Surface::getRect() {
+	return Common::Rect(w, h);
+}
+
 } // End of namespace Draci

Modified: scummvm/branches/gsoc2009-draci/engines/draci/surface.h
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/surface.h	2009-08-08 02:23:40 UTC (rev 43108)
+++ scummvm/branches/gsoc2009-draci/engines/draci/surface.h	2009-08-08 03:17:18 UTC (rev 43109)
@@ -47,6 +47,7 @@
 	void fill(uint colour);
 	uint centerOnY(uint y, uint height);
 	uint centerOnX(uint x, uint width);
+	Common::Rect getRect();
 
 private:
 	/** The current transparent colour of the surface. See getTransparentColour() and


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