mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 12:35:23 +00:00
Add option for Square pixels (1:1 PAR).
This commit is contained in:
parent
be602e417a
commit
91d58deec0
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user