diff options
| author | Cameron Cawley | 2019-11-15 18:51:31 +0000 |
|---|---|---|
| committer | Filippos Karapetis | 2019-11-18 08:09:15 +0200 |
| commit | 6293299f40d927c0c0009daa3a433cdc725244ee (patch) | |
| tree | ad9d7d8e1ce332b2e5eaa577126424036a27f749 /backends/platform/n64 | |
| parent | 3c05af358b4b1ca447d83f0de95d3f84178d47a2 (diff) | |
| download | scummvm-rg350-6293299f40d927c0c0009daa3a433cdc725244ee.tar.gz scummvm-rg350-6293299f40d927c0c0009daa3a433cdc725244ee.tar.bz2 scummvm-rg350-6293299f40d927c0c0009daa3a433cdc725244ee.zip | |
BACKENDS: Remove unnecessary implementations of setGraphicsMode(const char *)
Diffstat (limited to 'backends/platform/n64')
| -rw-r--r-- | backends/platform/n64/osys_n64.h | 1 | ||||
| -rw-r--r-- | backends/platform/n64/osys_n64_base.cpp | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/backends/platform/n64/osys_n64.h b/backends/platform/n64/osys_n64.h index 80bedbb5ab..75a15b4d17 100644 --- a/backends/platform/n64/osys_n64.h +++ b/backends/platform/n64/osys_n64.h @@ -146,7 +146,6 @@ public: virtual bool getFeatureState(Feature f); virtual const GraphicsMode *getSupportedGraphicsModes() const; virtual int getDefaultGraphicsMode() const; - bool setGraphicsMode(const char *name); virtual bool setGraphicsMode(int mode); virtual int getGraphicsMode() const; virtual void initSize(uint width, uint height, const Graphics::PixelFormat *format); diff --git a/backends/platform/n64/osys_n64_base.cpp b/backends/platform/n64/osys_n64_base.cpp index 2bde28dd62..1ad90cb014 100644 --- a/backends/platform/n64/osys_n64_base.cpp +++ b/backends/platform/n64/osys_n64_base.cpp @@ -224,22 +224,6 @@ int OSystem_N64::getDefaultGraphicsMode() const { return OVERS_NTSC_340X240; } -bool OSystem_N64::setGraphicsMode(const char *mode) { - int i = 0; - while (s_supportedGraphicsModes[i].name) { - if (!scumm_stricmp(s_supportedGraphicsModes[i].name, mode)) { - _graphicMode = s_supportedGraphicsModes[i].id; - - switchGraphicModeId(_graphicMode); - - return true; - } - i++; - } - - return true; -} - bool OSystem_N64::setGraphicsMode(int mode) { _graphicMode = mode; switchGraphicModeId(_graphicMode); |
