Add integer scale to Android.

This commit is contained in:
Themaister 2013-02-17 13:11:26 +01:00
parent 483d877498
commit a4fc614a03
2 changed files with 7 additions and 0 deletions

View File

@ -72,6 +72,11 @@
android:key="video_allow_rotate"
android:summary="Will auto-rotate the screen for vertically oriented games."
android:title="Auto-rotate" />
<CheckBoxPreference
android:defaultValue="false"
android:key="video_scale_integer"
android:summary="Scales video only in whole steps of game resolution. Useful when playing without bilinear filtering."
android:title="Scale integer" />
<ListPreference
android:entries="@array/aspect_ratios"

View File

@ -389,6 +389,8 @@ public class RetroArch extends Activity implements
config.setDouble("video_aspect_ratio", aspect_ratio);
}
config.setBoolean("video_scale_integer", prefs.getBoolean("video_scale_integer", false));
String shaderPath = prefs.getString("video_bsnes_shader", "");
if (prefs.getBoolean("video_shader_enable", false) && new File(shaderPath).exists()) {
config.setString("video_shader_type", "bsnes");