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/gph/gph-graphics.cpp | |
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/gph/gph-graphics.cpp')
-rw-r--r-- | backends/graphics/gph/gph-graphics.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/backends/graphics/gph/gph-graphics.cpp b/backends/graphics/gph/gph-graphics.cpp index 767fb57e11..e2c84114c4 100644 --- a/backends/graphics/gph/gph-graphics.cpp +++ b/backends/graphics/gph/gph-graphics.cpp @@ -477,7 +477,7 @@ bool GPHGraphicsManager::loadGFXMode() { return true; } -bool GPHGraphicsManager::hasFeature(OSystem::Feature f) { +bool GPHGraphicsManager::hasFeature(OSystem::Feature f) const { return (f == OSystem::kFeatureAspectRatioCorrection) || (f == OSystem::kFeatureCursorPalette); @@ -497,7 +497,7 @@ void GPHGraphicsManager::setFeatureState(OSystem::Feature f, bool enable) { } } -bool GPHGraphicsManager::getFeatureState(OSystem::Feature f) { +bool GPHGraphicsManager::getFeatureState(OSystem::Feature f) const { assert(_transactionMode == kTransactionNone); switch (f) { @@ -510,14 +510,6 @@ bool GPHGraphicsManager::getFeatureState(OSystem::Feature f) { } } -SurfaceSdlGraphicsManager::MousePos *GPHGraphicsManager::getMouseCurState() { - return &_mouseCurState; -} - -SurfaceSdlGraphicsManager::VideoState *GPHGraphicsManager::getVideoMode() { - return &_videoMode; -} - void GPHGraphicsManager::warpMouse(int x, int y) { if (_mouseCurState.x != x || _mouseCurState.y != y) { if (_videoMode.mode == GFX_HALF && !_overlayVisible) { |