Fix strange issue when changing the UI DPI scale in system settings

This commit is contained in:
Henrik Rydgård
2025-05-27 23:26:45 +02:00
parent 4edbc14025
commit 115ecfe41a
+1 -1
View File
@@ -1121,7 +1121,7 @@ void GameSettingsScreen::CreateSystemSettings(UI::ViewGroup *systemSettings) {
uiScale->SetZeroLabel(sy->T("Off"));
uiScale->OnChange.Add([](UI::EventParams &e) {
const float dpiMul = UIScaleFactorToMultiplier(g_Config.iUIScaleFactor);
g_display.Recalculate(-1, -1, -1, dpiMul, dpiMul);
g_display.Recalculate(-1, -1, -1, -1, dpiMul);
NativeResized();
return UI::EVENT_DONE;
});