Add an "Auto" mode that makes display res match internal res.

Change wording according to unknown's idea
This commit is contained in:
Henrik Rydgard
2014-07-20 00:22:08 +02:00
parent 76bdd84e43
commit b6569af71c
3 changed files with 15 additions and 4 deletions
+9 -1
View File
@@ -200,7 +200,15 @@ std::string NativeQueryConfig(std::string query) {
} else if (query == "immersiveMode") {
return std::string(g_Config.bImmersiveMode ? "1" : "0");
} else if (query == "hwScale") {
sprintf(temp, "%i", g_Config.iAndroidHwScale);
int scale = g_Config.iAndroidHwScale;
if (scale == 1) {
// If g_Config.iInternalResolution is also set to Auto (1), we fall back to "Device resolution" (0). It works out.
scale = g_Config.iInternalResolution;
} else if (scale >= 2) {
scale -= 1;
}
sprintf(temp, "%i", scale);
return std::string(temp);
} else {
return std::string("");