From fc6ff00cbce11f4ffee62d964531f71c88590a11 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Sat, 8 Aug 2009 03:17:18 +0000 Subject: Implemented Surface::getRect(). svn-id: r43109 --- engines/draci/surface.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/draci/surface.cpp') diff --git a/engines/draci/surface.cpp b/engines/draci/surface.cpp index e5fb18dda0..a1e9b0f9ab 100644 --- a/engines/draci/surface.cpp +++ b/engines/draci/surface.cpp @@ -168,4 +168,12 @@ uint Surface::centerOnY(uint y, uint height) { return newY; } +/** + * @brief Returns a Common::Rect corresponding to the surface. + */ + +Common::Rect Surface::getRect() { + return Common::Rect(w, h); +} + } // End of namespace Draci -- cgit v1.2.3