aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/surface.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-09-25 08:13:39 +0000
committerRobert Špalek2009-09-25 08:13:39 +0000
commitf51c81f34402c665751774b23f3734b7b7a0b2b4 (patch)
tree19ad3493d410da3c41fcf88f3dff5b7e68765b82 /engines/draci/surface.cpp
parentd6502a0c2416fc388a4e4e2c93315202fecaac5e (diff)
downloadscummvm-rg350-f51c81f34402c665751774b23f3734b7b7a0b2b4.tar.gz
scummvm-rg350-f51c81f34402c665751774b23f3734b7b7a0b2b4.tar.bz2
scummvm-rg350-f51c81f34402c665751774b23f3734b7b7a0b2b4.zip
Add const's to many interfaces of engines/draci/
svn-id: r44331
Diffstat (limited to 'engines/draci/surface.cpp')
-rw-r--r--engines/draci/surface.cpp12
1 files changed, 6 insertions, 6 deletions
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<Common::Rect> *Surface::getDirtyRects() {
+const Common::List<Common::Rect> *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);
}