mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-18 17:00:30 +02:00
Windows: Hook up the UI scale setting. Need a manual resize to update.
This commit is contained in:
1 parent
6f1358755c
commit
852018e899
6 files changed
+15
-1
No files matched your search
@@ -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