diff options
author | Colin Snover | 2017-10-15 13:46:41 -0500 |
---|---|---|
committer | Colin Snover | 2017-10-15 13:47:19 -0500 |
commit | bda253b1acfa8e8ce76436780ba9fa86d712c7a0 (patch) | |
tree | 21e9afe003a377606975b98b71ec446e9a432782 /backends/graphics | |
parent | f9ba31e4650ba6233349e784eca53b9893d19d57 (diff) | |
download | scummvm-rg350-bda253b1acfa8e8ce76436780ba9fa86d712c7a0.tar.gz scummvm-rg350-bda253b1acfa8e8ce76436780ba9fa86d712c7a0.tar.bz2 scummvm-rg350-bda253b1acfa8e8ce76436780ba9fa86d712c7a0.zip |
BACKENDS: Constify PaletteManager::grabPalette implementations
Diffstat (limited to 'backends/graphics')
-rw-r--r-- | backends/graphics/default-palette.h | 2 | ||||
-rw-r--r-- | backends/graphics/graphics.h | 2 |
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 |