diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-05-03 02:48:44 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-11-02 17:30:43 -0600 |
| commit | f289b06e0db8bba6a3491d6e3cf0c2dd1b7a29fa (patch) | |
| tree | 4e95a04a656f571e4dc0a7024348d22c5a1c662e /Source/Core/VideoCommon/Widescreen.cpp | |
| parent | 9c28f19e56307ac4de750ffa6ffb8c4e15e55def (diff) | |
Common: Make HookableEvent use non-static data.
Co-authored-by: Dentomologist <dentomologist@gmail.com>
Diffstat (limited to 'Source/Core/VideoCommon/Widescreen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Widescreen.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Widescreen.cpp b/Source/Core/VideoCommon/Widescreen.cpp index 21309f3a98..e980d24d57 100644 --- a/Source/Core/VideoCommon/Widescreen.cpp +++ b/Source/Core/VideoCommon/Widescreen.cpp @@ -29,7 +29,10 @@ WidescreenManager::WidescreenManager() "Invalid suggested aspect ratio mode: only Auto, 4:3 and 16:9 are supported"); } - m_config_changed = ConfigChangedEvent::Register( + auto& system = Core::System::GetInstance(); + auto& video_events = system.GetVideoEvents(); + + m_config_changed = video_events.config_changed_event.Register( [this](u32 bits) { if (bits & (CONFIG_CHANGE_BIT_ASPECT_RATIO)) { @@ -45,10 +48,9 @@ WidescreenManager::WidescreenManager() "Widescreen"); // VertexManager doesn't maintain statistics in Wii mode. - auto& system = Core::System::GetInstance(); if (!system.IsWii()) { - m_update_widescreen = AfterFrameEvent::Register( + m_update_widescreen = video_events.after_frame_event.Register( [this](Core::System&) { UpdateWidescreenHeuristic(); }, "WideScreen Heuristic"); } } |
