Windows: Hook up the UI scale setting. Need a manual resize to update.

This commit is contained in:
Henrik Rydgård
2025-02-20 17:06:38 -06:00
parent 6f1358755c
commit 852018e899
6 changed files with 15 additions and 1 deletions
+6
View File
@@ -341,6 +341,8 @@ static const ConfigSetting generalSettings[] = {
ConfigSetting("RunBehindPauseMenu", &g_Config.bRunBehindPauseMenu, false, CfgFlag::DEFAULT),
ConfigSetting("ShowGPOLEDs", &g_Config.bShowGPOLEDs, false, CfgFlag::PER_GAME),
ConfigSetting("UIScaleFactor", &g_Config.iUIScaleFactor, false, CfgFlag::DEFAULT),
};
static bool DefaultSasThread() {
@@ -2151,3 +2153,7 @@ int MultiplierToVolume100(float multiplier) {
}
return (int)(powf(multiplier, 1.0f / 1.75f) * 100.f + 0.5f);
}
float UIScaleFactorToMultiplier(int factor) {
return powf(2.0f, (float)factor / 8.0f);
}