aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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