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/default_display_client.h | |
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/default_display_client.h')
-rw-r--r-- | backends/platform/psp/default_display_client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/psp/default_display_client.h b/backends/platform/psp/default_display_client.h index d46b7f1a8a..f2972e0b49 100644 --- a/backends/platform/psp/default_display_client.h +++ b/backends/platform/psp/default_display_client.h @@ -40,10 +40,10 @@ public: void clearBuffer(); void clearPalette(); void render() { _renderer.render(); } - uint32 getWidth() { return _buffer.getSourceWidth(); } - uint32 getHeight() { return _buffer.getSourceHeight(); } + uint32 getWidth() const { return _buffer.getSourceWidth(); } + uint32 getHeight() const { return _buffer.getSourceHeight(); } void setPartialPalette(const byte *colors, uint start, uint num) { setDirty(); return _palette.setPartial(colors, start, num); } - void getPartialPalette(byte *colors, uint start, uint num) { + void getPartialPalette(byte *colors, uint start, uint num) const { return _palette.getPartial(colors, start, num); } void copyFromRect(const byte *buf, int pitch, int destX, int destY, int recWidth, int recHeight); |