diff options
Diffstat (limited to 'backends/graphics/graphics.h')
-rw-r--r-- | backends/graphics/graphics.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/backends/graphics/graphics.h b/backends/graphics/graphics.h index df4fb6a9e2..2f6cd0550f 100644 --- a/backends/graphics/graphics.h +++ b/backends/graphics/graphics.h @@ -42,11 +42,14 @@ public: virtual void setFeatureState(OSystem::Feature f, bool enable) = 0; virtual bool getFeatureState(OSystem::Feature f) const = 0; - virtual const OSystem::GraphicsMode *getSupportedGraphicsModes() const = 0; - virtual int getDefaultGraphicsMode() const = 0; - virtual bool setGraphicsMode(int mode) = 0; - virtual void resetGraphicsScale() = 0; - virtual int getGraphicsMode() const = 0; + virtual const OSystem::GraphicsMode *getSupportedGraphicsModes() const { + static const OSystem::GraphicsMode noGraphicsModes[] = {{"NONE", "Normal", 0}, {nullptr, nullptr, 0 }}; + return noGraphicsModes; + }; + virtual int getDefaultGraphicsMode() const { return 0; } + virtual bool setGraphicsMode(int mode) { return (mode == 0); } + virtual void resetGraphicsScale() {} + virtual int getGraphicsMode() const { return 0; } virtual const OSystem::GraphicsMode *getSupportedShaders() const { static const OSystem::GraphicsMode no_shader[2] = {{"NONE", "Normal (no shader)", 0}, {0, 0, 0}}; return no_shader; |