diff options
| author | Colin Snover | 2017-10-08 12:47:33 -0500 |
|---|---|---|
| committer | Colin Snover | 2017-10-15 13:24:21 -0500 |
| commit | 4757c24c683c2f2b8e3b55aa8d7a767aad9e947e (patch) | |
| tree | a35cf3cd386219e8c945ba8aacc3e20c442fbf69 /backends/graphics/wincesdl | |
| parent | f6ab0e5c10921be55e719ba93f8b5b980d4439e7 (diff) | |
| download | scummvm-rg350-4757c24c683c2f2b8e3b55aa8d7a767aad9e947e.tar.gz scummvm-rg350-4757c24c683c2f2b8e3b55aa8d7a767aad9e947e.tar.bz2 scummvm-rg350-4757c24c683c2f2b8e3b55aa8d7a767aad9e947e.zip | |
BACKENDS: Fix up graphics manager ports with const & override where appropriate
Diffstat (limited to 'backends/graphics/wincesdl')
| -rw-r--r-- | backends/graphics/wincesdl/wincesdl-graphics.cpp | 4 | ||||
| -rw-r--r-- | backends/graphics/wincesdl/wincesdl-graphics.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/backends/graphics/wincesdl/wincesdl-graphics.cpp b/backends/graphics/wincesdl/wincesdl-graphics.cpp index 44a1214a44..1677ecac06 100644 --- a/backends/graphics/wincesdl/wincesdl-graphics.cpp +++ b/backends/graphics/wincesdl/wincesdl-graphics.cpp @@ -115,7 +115,7 @@ const OSystem::GraphicsMode *WINCESdlGraphicsManager::getSupportedGraphicsModes( return s_supportedGraphicsModesLow; } -bool WINCESdlGraphicsManager::hasFeature(OSystem::Feature f) { +bool WINCESdlGraphicsManager::hasFeature(OSystem::Feature f) const { return (f == OSystem::kFeatureVirtualKeyboard); } @@ -153,7 +153,7 @@ void WINCESdlGraphicsManager::setFeatureState(OSystem::Feature f, bool enable) { } } -bool WINCESdlGraphicsManager::getFeatureState(OSystem::Feature f) { +bool WINCESdlGraphicsManager::getFeatureState(OSystem::Feature f) const { switch (f) { case OSystem::kFeatureFullscreenMode: return false; diff --git a/backends/graphics/wincesdl/wincesdl-graphics.h b/backends/graphics/wincesdl/wincesdl-graphics.h index 9316c69e44..4842d49023 100644 --- a/backends/graphics/wincesdl/wincesdl-graphics.h +++ b/backends/graphics/wincesdl/wincesdl-graphics.h @@ -46,9 +46,9 @@ public: const OSystem::GraphicsMode *getSupportedGraphicsModes() const; void initSize(uint w, uint h, const Graphics::PixelFormat *format = NULL); - bool hasFeature(OSystem::Feature f); + bool hasFeature(OSystem::Feature f) const; void setFeatureState(OSystem::Feature f, bool enable); - bool getFeatureState(OSystem::Feature f); + bool getFeatureState(OSystem::Feature f) const; int getDefaultGraphicsMode() const; bool setGraphicsMode(int mode); |
