diff options
author | Colin Snover | 2017-10-15 16:11:47 -0500 |
---|---|---|
committer | Colin Snover | 2017-10-15 16:11:47 -0500 |
commit | ea2fa9093d87f4e0864c421922fab37700ac260e (patch) | |
tree | f4974bc881a3b579f02019bd8a1da46c8b6061c6 /backends/platform/psp/display_client.cpp | |
parent | 2ef10faa1e33d9b71f03ef32288786bee5e26b32 (diff) | |
download | scummvm-rg350-ea2fa9093d87f4e0864c421922fab37700ac260e.tar.gz scummvm-rg350-ea2fa9093d87f4e0864c421922fab37700ac260e.tar.bz2 scummvm-rg350-ea2fa9093d87f4e0864c421922fab37700ac260e.zip |
PSP: Improve const-correctness
Diffstat (limited to 'backends/platform/psp/display_client.cpp')
-rw-r--r-- | backends/platform/psp/display_client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/psp/display_client.cpp b/backends/platform/psp/display_client.cpp index b238631e62..6e1ae9a10a 100644 --- a/backends/platform/psp/display_client.cpp +++ b/backends/platform/psp/display_client.cpp @@ -204,7 +204,7 @@ void Palette::deallocate() { // Copy some of the palette to an array of colors // -void Palette::getPartial(byte *colors, uint start, uint num) { +void Palette::getPartial(byte *colors, uint start, uint num) const { DEBUG_ENTER_FUNC(); assert(_values); @@ -286,13 +286,13 @@ void Palette::print(uint32 numToPrint /* = 0 */) { } } -uint32 Palette::getRawColorAt(uint32 position) { +uint32 Palette::getRawColorAt(uint32 position) const { byte *pcolor = &_values[_pixelFormat.pixelsToBytes(position)]; uint32 color = _pixelFormat.getColorValueAt(pcolor); return color; } -uint32 Palette::getRGBAColorAt(uint32 position) { +uint32 Palette::getRGBAColorAt(uint32 position) const { uint32 color = getRawColorAt(position); uint32 r, g, b, a; _pixelFormat.colorToRgba(color, r, g, b, a); |