aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/3ds
diff options
context:
space:
mode:
authorColin Snover2017-10-15 13:46:41 -0500
committerColin Snover2017-10-15 13:47:19 -0500
commitbda253b1acfa8e8ce76436780ba9fa86d712c7a0 (patch)
tree21e9afe003a377606975b98b71ec446e9a432782 /backends/platform/3ds
parentf9ba31e4650ba6233349e784eca53b9893d19d57 (diff)
downloadscummvm-rg350-bda253b1acfa8e8ce76436780ba9fa86d712c7a0.tar.gz
scummvm-rg350-bda253b1acfa8e8ce76436780ba9fa86d712c7a0.tar.bz2
scummvm-rg350-bda253b1acfa8e8ce76436780ba9fa86d712c7a0.zip
BACKENDS: Constify PaletteManager::grabPalette implementations
Diffstat (limited to 'backends/platform/3ds')
-rw-r--r--backends/platform/3ds/osystem-graphics.cpp2
-rw-r--r--backends/platform/3ds/osystem.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/3ds/osystem-graphics.cpp b/backends/platform/3ds/osystem-graphics.cpp
index 78b7907fe6..e791dd4c21 100644
--- a/backends/platform/3ds/osystem-graphics.cpp
+++ b/backends/platform/3ds/osystem-graphics.cpp
@@ -230,7 +230,7 @@ void OSystem_3DS::setPalette(const byte *colors, uint start, uint num) {
flushGameScreen();
}
}
-void OSystem_3DS::grabPalette(byte *colors, uint start, uint num) {
+void OSystem_3DS::grabPalette(byte *colors, uint start, uint num) const {
assert(start + num <= 256);
memcpy(colors, _palette + 3 * start, 3 * num);
}
diff --git a/backends/platform/3ds/osystem.h b/backends/platform/3ds/osystem.h
index 5df49fe593..cad46a18dc 100644
--- a/backends/platform/3ds/osystem.h
+++ b/backends/platform/3ds/osystem.h
@@ -105,7 +105,7 @@ public:
int16 getHeight(){ return _gameHeight; }
int16 getWidth(){ return _gameWidth; }
void setPalette(const byte *colors, uint start, uint num);
- void grabPalette(byte *colors, uint start, uint num);
+ void grabPalette(byte *colors, uint start, uint num) const;
void copyRectToScreen(const void *buf, int pitch, int x, int y, int w,
int h);
Graphics::Surface *lockScreen();