mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
BACKENDS: drop setDefaultFeatureState() usage, it's not needed
This commit is contained in:
parent
1178c5567f
commit
bb388295a4
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user