aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'backends/graphics')
-rw-r--r--backends/graphics/default-palette.h2
-rw-r--r--backends/graphics/graphics.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/default-palette.h b/backends/graphics/default-palette.h
index a66e1862b7..e1b4c5cb22 100644
--- a/backends/graphics/default-palette.h
+++ b/backends/graphics/default-palette.h
@@ -51,7 +51,7 @@ public:
memcpy(_palette + 3 * start, colors, 3 * num);
setPaletteIntern(colors, start, num);
}
- void grabPalette(byte *colors, uint start, uint num) {
+ void grabPalette(byte *colors, uint start, uint num) const {
assert(start + num <= 256);
memcpy(colors, _palette + 3 * start, 3 * num);
}
diff --git a/backends/graphics/graphics.h b/backends/graphics/graphics.h
index cf33803cf5..d5c36c13c4 100644
--- a/backends/graphics/graphics.h
+++ b/backends/graphics/graphics.h
@@ -98,7 +98,7 @@ public:
// Graphics::PaletteManager interface
//virtual void setPalette(const byte *colors, uint start, uint num) = 0;
- //virtual void grabPalette(byte *colors, uint start, uint num) = 0;
+ //virtual void grabPalette(byte *colors, uint start, uint num) const = 0;
};
#endif