mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 11:15:20 +02:00
Windows: Hook up the UI scale setting. Need a manual resize to update.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user