Move WidescreenHeuristic to it's own class

It's about the only thing left in renderer
This commit is contained in:
Scott Mansell
2023-01-31 17:58:54 +13:00
parent 31cfe8250d
commit 9b5397abdb
9 changed files with 163 additions and 117 deletions

View File

@ -64,6 +64,7 @@
#include "VideoCommon/VideoCommon.h"
#include "VideoCommon/VideoConfig.h"
#include "VideoCommon/VideoState.h"
#include "VideoCommon/Widescreen.h"
VideoBackendBase* g_video_backend = nullptr;
@ -359,6 +360,7 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr<AbstractGfx> gfx,
g_framebuffer_manager = std::make_unique<FramebufferManager>();
g_shader_cache = std::make_unique<VideoCommon::ShaderCache>();
g_graphics_mod_manager = std::make_unique<GraphicsModManager>();
g_widescreen = std::make_unique<WidescreenManager>();
auto& system = Core::System::GetInstance();
auto& command_processor = system.GetCommandProcessor();
@ -407,6 +409,7 @@ void VideoBackendBase::ShutdownShared()
g_shader_cache.reset();
g_vertex_manager.reset();
g_renderer.reset();
g_widescreen.reset();
g_presenter.reset();
g_gfx.reset();