BACKENDS: Remove unnecessary implementations of setGraphicsMode(const char *)

This commit is contained in:
Cameron Cawley 2019-11-15 18:51:31 +00:00 committed by Filippos Karapetis
parent 3c05af358b
commit 6293299f40
10 changed files with 0 additions and 54 deletions

View File

@ -175,11 +175,6 @@ bool OSystem_DS::setGraphicsMode(int mode) {
return true;
}
bool OSystem_DS::setGraphicsMode(const char *name) {
consolePrintf("Set gfx mode %s\n", name);
return true;
}
int OSystem_DS::getGraphicsMode() const {
return -1;
}

View File

@ -87,7 +87,6 @@ public:
virtual const GraphicsMode *getSupportedGraphicsModes() const;
virtual int getDefaultGraphicsMode() const;
virtual bool setGraphicsMode(int mode);
bool setGraphicsMode(const char *name);
virtual int getGraphicsMode() const;
virtual void initSize(uint width, uint height, const Graphics::PixelFormat *format);
virtual int16 getHeight();

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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; }

View File

@ -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();

View File

@ -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;

View File

@ -161,11 +161,6 @@ void OSystem_SDL_Symbian::checkMappings() {
GUI::Actions::Instance()->initInstanceGame();
}
// make sure we always go to normal, even if the string might be set wrong!
bool OSystem_SDL_Symbian::setGraphicsMode(const char * /*name*/) {
return _graphicsManager->setGraphicsMode(0);
}
Common::String OSystem_SDL_Symbian::getDefaultConfigFileName() {
char configFile[MAXPATHLEN];
strcpy(configFile, Symbian::GetExecutablePath());

View File

@ -37,7 +37,6 @@ public:
virtual void quit();
virtual void engineInit();
virtual void engineDone();
virtual bool setGraphicsMode(const char *name);
virtual Common::String getDefaultConfigFileName();
virtual bool hasFeature(Feature f);