mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 23:40:29 +02:00
Fix another texture replacement crash (only happens with broken png texture files).
Fix a warning too.
This commit is contained in:
1 parent
435b265888
commit
252d342cc5
4 files changed
+16
-3
No files matched your search
+9
-1
@@ -214,6 +214,14 @@ static float DefaultUISaturation() {
|
||||
return IsVREnabled() ? 1.5f : 1.0f;
|
||||
}
|
||||
|
||||
static int DefaultUIScaleFactor() {
|
||||
#if PPSSPP_PLATFORM(WINDOWS)
|
||||
return -1;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static const ConfigSetting generalSettings[] = {
|
||||
ConfigSetting("FirstRun", &g_Config.bFirstRun, true, CfgFlag::DEFAULT),
|
||||
ConfigSetting("RunCount", &g_Config.iRunCount, 0, CfgFlag::DEFAULT),
|
||||
@@ -337,7 +345,7 @@ static const ConfigSetting generalSettings[] = {
|
||||
|
||||
ConfigSetting("ShowGPOLEDs", &g_Config.bShowGPOLEDs, false, CfgFlag::PER_GAME),
|
||||
|
||||
ConfigSetting("UIScaleFactor", &g_Config.iUIScaleFactor, false, CfgFlag::DEFAULT),
|
||||
ConfigSetting("UIScaleFactor", &g_Config.iUIScaleFactor, &DefaultUIScaleFactor, CfgFlag::DEFAULT),
|
||||
|
||||
ConfigSetting("VulkanDisableImplicitLayers", &g_Config.bVulkanDisableImplicitLayers, false, CfgFlag::DEFAULT),
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user