BACKENDS: drop setDefaultFeatureState() usage, it's not needed

This commit is contained in:
Paweł Kołodziejski 2020-10-16 20:17:29 +02:00
parent 1178c5567f
commit bb388295a4
4 changed files with 1 additions and 13 deletions

View File

@ -54,11 +54,6 @@ void SdlGraphics3dManager::deactivateManager() {
_eventSource->setGraphicsManager(0);
}
void SdlGraphics3dManager::setDefaultFeatureState() {
setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen"));
setFeatureState(OSystem::kFeatureAspectRatioCorrection, ConfMan.getBool("aspect_ratio"));
}
void SdlGraphics3dManager::saveScreenshot() {
Common::String filename;

View File

@ -118,11 +118,6 @@ public:
bool fullscreen;
};
/**
* Gets the default feature state of the graphics manager.
*/
virtual void setDefaultFeatureState();
/** Obtain the user configured fullscreen resolution, or default to the desktop resolution */
virtual Common::Rect getPreferredFullscreenResolution();

View File

@ -791,9 +791,6 @@ bool OSystem_SDL::setGraphicsMode(int mode, uint flags) {
delete sdlGraphics3dManager;
}
_graphicsManager = sdlGraphics3dManager = new OpenGLSdlGraphics3dManager(_eventSource, _window, _capabilities);
// Setup feature defaults for 3D gfx while switching from 2D
if (sdlGraphicsManager)
sdlGraphics3dManager->setDefaultFeatureState();
switchedManager = true;
}
#endif

View File

@ -400,6 +400,7 @@ void initGraphics3d(int width, int height) {
g_system->setGraphicsMode(0, OSystem::kGfxModeRender3d);
g_system->initSize(width, height);
g_system->setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen")); // TODO: Replace this with initCommonGFX()
g_system->setFeatureState(OSystem::kFeatureAspectRatioCorrection, ConfMan.getBool("aspect_ratio")); // TODO: Replace this with initCommonGFX()
g_system->endGFXTransaction();
}