diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-01-18 15:21:40 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2015-01-18 15:21:40 -0600 |
| commit | 864969f3003d3d05f879d54d34e5a38440289e0f (patch) | |
| tree | 9935df11a716993cff6dd409c9224603c6cb4382 /Source/Android/src | |
| parent | 37a770bb9f23404cbdc75e8cc2df31dfecb97057 (diff) | |
[Android] Expose aspect ratio to the video settings.
Diffstat (limited to 'Source/Android/src')
| -rw-r--r-- | Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java b/Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java index 710ebca7ee..1cfeb5cbae 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/settings/UserPreferences.java @@ -103,6 +103,7 @@ public final class UserPreferences editor.putBoolean("disableDestinationAlpha", getConfig("gfx_opengl.ini", "Settings", "DstAlphaPass", "False").equals("True")); editor.putBoolean("fastDepthCalculation", getConfig("gfx_opengl.ini", "Settings", "FastDepthCalc", "True").equals("True")); + editor.putString("aspectRatio", getConfig("gfx_opengl.ini", "Settings", "AspectRatio", "0")); // Apply the changes. editor.apply(); @@ -162,6 +163,9 @@ public final class UserPreferences // Whether or not to use fast depth calculation. boolean useFastDepthCalc = prefs.getBoolean("fastDepthCalculation", true); + // Aspect ratio selection + String aspectRatio = prefs.getString("aspectRatio", "0"); + // Internal resolution. Falls back to 1x Native upon error. String internalResolution = prefs.getString("internalResolution", "2"); @@ -211,6 +215,7 @@ public final class UserPreferences // Video Hack Settings NativeLibrary.SetConfig("gfx_opengl.ini", "Hacks", "EFBAccessEnable", skipEFBAccess ? "False" : "True"); NativeLibrary.SetConfig("gfx_opengl.ini", "Hacks", "EFBEmulateFormatChanges", ignoreFormatChanges ? "True" : "False"); + NativeLibrary.SetConfig("gfx_opengl.ini", "Settings", "AspectRatio", aspectRatio); // Set EFB Copy Method if (efbCopyMethod.equals("Off")) |
