aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp
diff options
context:
space:
mode:
authorCameron Cawley2019-11-15 18:51:31 +0000
committerFilippos Karapetis2019-11-18 08:09:15 +0200
commit6293299f40d927c0c0009daa3a433cdc725244ee (patch)
treead9d7d8e1ce332b2e5eaa577126424036a27f749 /backends/platform/psp
parent3c05af358b4b1ca447d83f0de95d3f84178d47a2 (diff)
downloadscummvm-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/psp')
-rw-r--r--backends/platform/psp/display_manager.cpp16
-rw-r--r--backends/platform/psp/display_manager.h1
-rw-r--r--backends/platform/psp/osys_psp.cpp7
-rw-r--r--backends/platform/psp/osys_psp.h1
4 files changed, 0 insertions, 25 deletions
diff --git a/backends/platform/psp/display_manager.cpp b/backends/platform/psp/display_manager.cpp
index 9643063294..4139ac38d0 100644
--- a/backends/platform/psp/display_manager.cpp
+++ b/backends/platform/psp/display_manager.cpp
@@ -326,22 +326,6 @@ void DisplayManager::setSizeAndPixelFormat(uint width, uint height, const Graphi
calculateScaleParams();
}
-bool DisplayManager::setGraphicsMode(const char *name) {
- DEBUG_ENTER_FUNC();
-
- int i = 0;
-
- while (_supportedModes[i].name) {
- if (!scumm_stricmp(_supportedModes[i].name, name)) {
- setGraphicsMode(_supportedModes[i].id);
- return true;
- }
- i++;
- }
-
- return false;
-}
-
bool DisplayManager::setGraphicsMode(int mode) {
DEBUG_ENTER_FUNC();
diff --git a/backends/platform/psp/display_manager.h b/backends/platform/psp/display_manager.h
index e33328de4b..7de6524216 100644
--- a/backends/platform/psp/display_manager.h
+++ b/backends/platform/psp/display_manager.h
@@ -116,7 +116,6 @@ public:
bool renderAll(); // return true if rendered or nothing dirty. False otherwise
void waitUntilRenderFinished();
bool setGraphicsMode(int mode);
- bool setGraphicsMode(const char *name);
int getGraphicsMode() const { return _graphicsMode; }
uint32 getDefaultGraphicsMode() const { return FIT_TO_SCREEN; }
const OSystem::GraphicsMode* getSupportedGraphicsModes() const { return _supportedModes; }
diff --git a/backends/platform/psp/osys_psp.cpp b/backends/platform/psp/osys_psp.cpp
index f456676730..006305c6fd 100644
--- a/backends/platform/psp/osys_psp.cpp
+++ b/backends/platform/psp/osys_psp.cpp
@@ -150,13 +150,6 @@ bool OSystem_PSP::setGraphicsMode(int mode) {
return _displayManager.setGraphicsMode(mode);
}
-bool OSystem_PSP::setGraphicsMode(const char *name) {
- DEBUG_ENTER_FUNC();
- _displayManager.waitUntilRenderFinished();
- _pendingUpdate = false;
- return _displayManager.setGraphicsMode(name);
-}
-
int OSystem_PSP::getGraphicsMode() const {
DEBUG_ENTER_FUNC();
return _displayManager.getGraphicsMode();
diff --git a/backends/platform/psp/osys_psp.h b/backends/platform/psp/osys_psp.h
index 304c724aaa..58354bfbce 100644
--- a/backends/platform/psp/osys_psp.h
+++ b/backends/platform/psp/osys_psp.h
@@ -77,7 +77,6 @@ public:
const GraphicsMode *getSupportedGraphicsModes() const;
int getDefaultGraphicsMode() const;
bool setGraphicsMode(int mode);
- bool setGraphicsMode(const char *name);
int getGraphicsMode() const;
#ifdef USE_RGB_COLOR
virtual Graphics::PixelFormat getScreenFormat() const;