Add option for Square pixels (1:1 PAR).

This commit is contained in:
Themaister 2012-12-31 21:33:15 +01:00
parent be602e417a
commit 91d58deec0
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<string-array name="aspect_ratios">
<item>Full screen</item>
<item>Auto</item>
<item>Square pixel</item>
<item>4:3</item>
<item>16:9</item>
<item>16:10</item>
@ -12,6 +13,7 @@
<string-array name="aspect_values">
<item>full</item>
<item>auto</item>
<item>square</item>
<item>1.33333</item>
<item>1.77777</item>
<item>1.60000</item>

View File

@ -145,6 +145,10 @@ public class ModuleActivity extends Activity implements
config.setBoolean("video_force_aspect", true);
config.setBoolean("video_force_aspect_auto", true);
config.setDouble("video_aspect_ratio", -1.0);
} else if (aspect.equals("square")) {
config.setBoolean("video_force_aspect", true);
config.setBoolean("video_force_aspect_auto", false);
config.setDouble("video_aspect_ratio", -1.0);
} else {
double aspect_ratio = Double.parseDouble(aspect);
config.setBoolean("video_force_aspect", true);