summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Widescreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Widescreen.cpp')
-rw-r--r--Source/Core/VideoCommon/Widescreen.cpp28
1 files changed, 13 insertions, 15 deletions
diff --git a/Source/Core/VideoCommon/Widescreen.cpp b/Source/Core/VideoCommon/Widescreen.cpp
index e980d24d57..987e733555 100644
--- a/Source/Core/VideoCommon/Widescreen.cpp
+++ b/Source/Core/VideoCommon/Widescreen.cpp
@@ -32,26 +32,24 @@ WidescreenManager::WidescreenManager()
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))
- {
- // If the widescreen flag isn't being overridden by any settings,
- // reset it to default if heuristic aren't running or to the last
- // heuristic value if they were running.
- if (std::optional<bool> is_game_widescreen = GetWidescreenOverride())
- m_is_game_widescreen = *is_game_widescreen;
- else
- m_is_game_widescreen = (m_heuristic_state == HeuristicState::Active_Found_Anamorphic);
- }
- },
- "Widescreen");
+ m_config_changed = video_events.config_changed_event.Register([this](u32 bits) {
+ if (bits & (CONFIG_CHANGE_BIT_ASPECT_RATIO))
+ {
+ // If the widescreen flag isn't being overridden by any settings,
+ // reset it to default if heuristic aren't running or to the last
+ // heuristic value if they were running.
+ if (std::optional<bool> is_game_widescreen = GetWidescreenOverride())
+ m_is_game_widescreen = *is_game_widescreen;
+ else
+ m_is_game_widescreen = (m_heuristic_state == HeuristicState::Active_Found_Anamorphic);
+ }
+ });
// VertexManager doesn't maintain statistics in Wii mode.
if (!system.IsWii())
{
m_update_widescreen = video_events.after_frame_event.Register(
- [this](Core::System&) { UpdateWidescreenHeuristic(); }, "WideScreen Heuristic");
+ [this](Core::System&) { UpdateWidescreenHeuristic(); });
}
}