aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2015-11-16 16:03:44 +0100
committerJohannes Schickel2015-11-16 16:03:44 +0100
commiteee8ef9dce40c3f5be80f38822fe7e37ddadb432 (patch)
tree1174cba9024ebeaf7ab5ea5c8d434adc2ab14ae8
parentb72d1b9bc75786290369d59fc6bbe96a928760fe (diff)
downloadscummvm-rg350-eee8ef9dce40c3f5be80f38822fe7e37ddadb432.tar.gz
scummvm-rg350-eee8ef9dce40c3f5be80f38822fe7e37ddadb432.tar.bz2
scummvm-rg350-eee8ef9dce40c3f5be80f38822fe7e37ddadb432.zip
GRAPHICS: Make PixelFormat::toString const.
-rw-r--r--graphics/pixelformat.cpp2
-rw-r--r--graphics/pixelformat.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/graphics/pixelformat.cpp b/graphics/pixelformat.cpp
index e7b5401ed6..a712813b45 100644
--- a/graphics/pixelformat.cpp
+++ b/graphics/pixelformat.cpp
@@ -25,7 +25,7 @@
namespace Graphics {
-Common::String PixelFormat::toString() {
+Common::String PixelFormat::toString() const {
if (bytesPerPixel == 1)
return "CLUT8";
diff --git a/graphics/pixelformat.h b/graphics/pixelformat.h
index 3e6c53b05f..9dd06241b7 100644
--- a/graphics/pixelformat.h
+++ b/graphics/pixelformat.h
@@ -262,7 +262,7 @@ struct PixelFormat {
return 0;
}
- Common::String toString();
+ Common::String toString() const;
};
} // End of namespace Graphics