HostInterface: Fix toggling widescreen hack while running

This commit is contained in:
Connor McLaughlin 2021-05-01 02:56:29 +10:00
parent 864e7f0c91
commit 052721fffc

View file

@ -805,7 +805,8 @@ void HostInterface::CheckForSettingsChanges(const Settings& old_settings)
g_gpu->UpdateSettings(); g_gpu->UpdateSettings();
} }
if (g_settings.display_aspect_ratio != old_settings.display_aspect_ratio || if (g_settings.gpu_widescreen_hack != old_settings.gpu_widescreen_hack ||
g_settings.display_aspect_ratio != old_settings.display_aspect_ratio ||
(g_settings.display_aspect_ratio == DisplayAspectRatio::Custom && (g_settings.display_aspect_ratio == DisplayAspectRatio::Custom &&
(g_settings.display_aspect_ratio_custom_numerator != old_settings.display_aspect_ratio_custom_numerator || (g_settings.display_aspect_ratio_custom_numerator != old_settings.display_aspect_ratio_custom_numerator ||
g_settings.display_aspect_ratio_custom_denominator != old_settings.display_aspect_ratio_custom_denominator))) g_settings.display_aspect_ratio_custom_denominator != old_settings.display_aspect_ratio_custom_denominator)))
@ -913,7 +914,7 @@ void HostInterface::OnHostDisplayResized()
{ {
if (System::IsValid()) if (System::IsValid())
{ {
if (g_settings.display_aspect_ratio == DisplayAspectRatio::MatchWindow) if (g_settings.gpu_widescreen_hack && g_settings.display_aspect_ratio == DisplayAspectRatio::MatchWindow)
GTE::UpdateAspectRatio(); GTE::UpdateAspectRatio();
} }
} }