From f51c81f34402c665751774b23f3734b7b7a0b2b4 Mon Sep 17 00:00:00 2001 From: Robert Špalek Date: Fri, 25 Sep 2009 08:13:39 +0000 Subject: Add const's to many interfaces of engines/draci/ svn-id: r44331 --- engines/draci/surface.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines/draci/surface.cpp') diff --git a/engines/draci/surface.cpp b/engines/draci/surface.cpp index a1e9b0f9ab..12fabd2ec3 100644 --- a/engines/draci/surface.cpp +++ b/engines/draci/surface.cpp @@ -91,7 +91,7 @@ void Surface::markClean() { /** * @brief Checks whether the surface needs a full update */ -bool Surface::needsFullUpdate() { +bool Surface::needsFullUpdate() const { return _fullUpdate; } @@ -99,14 +99,14 @@ bool Surface::needsFullUpdate() { * @brief Fetches the surface's dirty rectangles * @return A pointer a list of dirty rectangles */ -Common::List *Surface::getDirtyRects() { +const Common::List *Surface::getDirtyRects() const { return &_dirtyRects; } /** * @brief Returns the current transparent colour of the surface */ -uint Surface::getTransparentColour() { +uint Surface::getTransparentColour() const { return _transparentColour; } @@ -134,7 +134,7 @@ void Surface::fill(uint colour) { * * @return The centered x coordinate */ -uint Surface::centerOnX(uint x, uint width) { +uint Surface::centerOnX(uint x, uint width) const { int newX = x - width / 2; @@ -155,7 +155,7 @@ uint Surface::centerOnX(uint x, uint width) { * * @return The centered y coordinate */ -uint Surface::centerOnY(uint y, uint height) { +uint Surface::centerOnY(uint y, uint height) const { int newY = y - height / 2; @@ -172,7 +172,7 @@ uint Surface::centerOnY(uint y, uint height) { * @brief Returns a Common::Rect corresponding to the surface. */ -Common::Rect Surface::getRect() { +Common::Rect Surface::getRect() const { return Common::Rect(w, h); } -- cgit v1.2.3