aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/dinguxsdl
diff options
context:
space:
mode:
authorColin Snover2017-10-08 12:47:33 -0500
committerColin Snover2017-10-15 13:24:21 -0500
commit4757c24c683c2f2b8e3b55aa8d7a767aad9e947e (patch)
treea35cf3cd386219e8c945ba8aacc3e20c442fbf69 /backends/graphics/dinguxsdl
parentf6ab0e5c10921be55e719ba93f8b5b980d4439e7 (diff)
downloadscummvm-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/dinguxsdl')
-rw-r--r--backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp8
-rw-r--r--backends/graphics/dinguxsdl/dinguxsdl-graphics.h37
2 files changed, 17 insertions, 28 deletions
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
index 10605f45a7..3de6439d1a 100644
--- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
+++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.cpp
@@ -487,14 +487,6 @@ bool DINGUXSdlGraphicsManager::getFeatureState(OSystem::Feature f) {
}
}
-SurfaceSdlGraphicsManager::MousePos *DINGUXSdlGraphicsManager::getMouseCurState() {
- return &_mouseCurState;
-}
-
-SurfaceSdlGraphicsManager::VideoState *DINGUXSdlGraphicsManager::getVideoMode() {
- return &_videoMode;
-}
-
void DINGUXSdlGraphicsManager::warpMouse(int x, int y) {
if (_mouseCurState.x != x || _mouseCurState.y != y) {
if (_videoMode.mode == GFX_HALF && !_overlayVisible) {
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.h b/backends/graphics/dinguxsdl/dinguxsdl-graphics.h
index 8a356106ad..89ee1411f1 100644
--- a/backends/graphics/dinguxsdl/dinguxsdl-graphics.h
+++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.h
@@ -36,26 +36,23 @@ class DINGUXSdlGraphicsManager : public SurfaceSdlGraphicsManager {
public:
DINGUXSdlGraphicsManager(SdlEventSource *boss, SdlWindow *window);
- bool hasFeature(OSystem::Feature f);
- void setFeatureState(OSystem::Feature f, bool enable);
- bool getFeatureState(OSystem::Feature f);
- int getDefaultGraphicsMode() const;
-
- void initSize(uint w, uint h);
- const OSystem::GraphicsMode *getSupportedGraphicsModes() const;
- bool setGraphicsMode(const char *name);
- bool setGraphicsMode(int mode);
- void setGraphicsModeIntern();
- void internUpdateScreen();
- void showOverlay();
- void hideOverlay();
- bool loadGFXMode();
- void drawMouse();
- void undrawMouse();
- virtual void warpMouse(int x, int y);
-
- SurfaceSdlGraphicsManager::MousePos *getMouseCurState();
- SurfaceSdlGraphicsManager::VideoState *getVideoMode();
+ bool hasFeature(OSystem::Feature f) const override;
+ void setFeatureState(OSystem::Feature f, bool enable) override;
+ bool getFeatureState(OSystem::Feature f) override;
+ int getDefaultGraphicsMode() const override;
+
+ void initSize(uint w, uint h) override;
+ const OSystem::GraphicsMode *getSupportedGraphicsModes() const override;
+ bool setGraphicsMode(const char *name) override;
+ bool setGraphicsMode(int mode) override;
+ void setGraphicsModeIntern() override;
+ void internUpdateScreen() override;
+ void showOverlay() override;
+ void hideOverlay() override;
+ bool loadGFXMode() override;
+ void drawMouse() override;
+ void undrawMouse() override;
+ void warpMouse(int x, int y) override;
virtual void transformMouseCoordinates(Common::Point &point);
};