(Android) Add Vsync toggle in Settings

This commit is contained in:
twinaphex 2013-01-02 06:43:31 +01:00
parent 55376dc2b5
commit 49709b90bf
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,11 @@
android:key="video_smooth"
android:summary="Applies bilinear filter, smooths out edges"
android:title="Bilinear filter" />
<CheckBoxPreference
android:defaultValue="true"
android:key="video_vsync"
android:summary="When set to enabled, prevents screen tearing"
android:title="VSync" />
<CheckBoxPreference
android:defaultValue="true"
android:key="video_allow_rotate"

View File

@ -139,6 +139,7 @@ public class ModuleActivity extends Activity implements
config.setBoolean("video_allow_rotate", prefs.getBoolean("video_allow_rotate", true));
config.setBoolean("savestate_auto_save", prefs.getBoolean("savestate_auto_save", false));
config.setBoolean("rewind_enable", prefs.getBoolean("rewind_enable", false));
config.setBoolean("video_vsync", prefs.getBoolean("video_vsync", true));
String aspect = prefs.getString("video_aspect_ratio", "auto");
if (aspect.equals("full")) {