mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 06:48:33 +00:00
Also use events for config changed
This commit is contained in:
parent
0da69055d9
commit
3ae78b8e76
11 changed files with 46 additions and 13 deletions
|
@ -65,6 +65,9 @@ Renderer::Renderer()
|
|||
UpdateActiveConfig();
|
||||
CalculateTargetSize();
|
||||
UpdateWidescreen();
|
||||
|
||||
m_config_changed_handle = ConfigChangedEvent::Register([this](u32 bits) { OnConfigChanged(bits); }, "Renderer");
|
||||
|
||||
// VertexManager doesn't maintain statistics in Wii mode.
|
||||
if (!SConfig::GetInstance().bWii)
|
||||
m_update_widescreen_handle = AfterFrameEvent::Register([this] { UpdateWidescreenHeuristic(); }, "WideScreen Heuristic");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue