diff options
-rw-r--r-- | backends/platform/psp/cursor.h | 4 | ||||
-rw-r--r-- | backends/platform/psp/default_display_client.h | 4 | ||||
-rw-r--r-- | backends/platform/psp/powerman.h | 2 | ||||
-rw-r--r-- | backends/platform/psp/pspkeyboard.h | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/backends/platform/psp/cursor.h b/backends/platform/psp/cursor.h index d68859e9ad..c3d4d76803 100644 --- a/backends/platform/psp/cursor.h +++ b/backends/platform/psp/cursor.h @@ -56,8 +56,8 @@ public: void enableCursorPalette(bool enable); void setLimits(uint32 width, uint32 height); void setXY(int x, int y); - int32 getX() { return _x; } - int32 getY() { return _y; } + int32 getX() const { return _x; } + int32 getY() const { return _y; } bool increaseXY(int32 incX, int32 incY); // returns true if there's a change in x or y void adjustXYForScreenSize(int32 &x, int32 &y); void init(); diff --git a/backends/platform/psp/default_display_client.h b/backends/platform/psp/default_display_client.h index 9fea1a3027..716e6fcc35 100644 --- a/backends/platform/psp/default_display_client.h +++ b/backends/platform/psp/default_display_client.h @@ -33,7 +33,7 @@ class DefaultDisplayClient : public DisplayClient { public: DefaultDisplayClient() : _visible(false), _dirty(true) {} - bool isVisible() { return _visible; } + bool isVisible() const { return _visible; } void setVisible(bool v) { _visible = v; setDirty(); } Buffer &buffer() { return _buffer; } Palette &palette() { return _palette; } @@ -53,7 +53,7 @@ public: void copyToArray(byte *dst, int pitch); void setDirty() { _dirty = true; } void setClean() { _dirty = false; } - bool isDirty() { return _dirty; } + bool isDirty() const { return _dirty; } protected: Buffer _buffer; diff --git a/backends/platform/psp/powerman.h b/backends/platform/psp/powerman.h index 03a873647b..af3134adee 100644 --- a/backends/platform/psp/powerman.h +++ b/backends/platform/psp/powerman.h @@ -126,7 +126,7 @@ private: volatile int _PMStatus; /* What the PM is doing */ public: - int getPMStatus() { return _PMStatus; } + int getPMStatus() const { return _PMStatus; } }; diff --git a/backends/platform/psp/pspkeyboard.h b/backends/platform/psp/pspkeyboard.h index 08c5bc4505..072bec6c27 100644 --- a/backends/platform/psp/pspkeyboard.h +++ b/backends/platform/psp/pspkeyboard.h @@ -52,11 +52,11 @@ public: ~PSPKeyboard(); bool load(); // Load keyboard into memory - bool isInit() { return _init; } // Check for initialization - bool isDirty() { return _dirty; } // Check if needs redrawing + bool isInit() const { return _init; } // Check for initialization + bool isDirty() const { return _dirty; } // Check if needs redrawing void setDirty() { _dirty = true; } void setClean() { _dirty = false; } - bool isVisible() { return _state != kInvisible; } // Check if visible + bool isVisible() const { return _state != kInvisible; } // Check if visible void setVisible(bool val); bool processInput(Common::Event &event, SceCtrlData &pad); // Process input void moveTo(const int newX, const int newY); // Move keyboard |