Add 'uncorrected' aspect ratio

This commit is contained in:
ds22x 2022-02-12 22:42:45 +01:00
parent 9f60034086
commit e98a11f483
2 changed files with 17 additions and 4 deletions

View File

@ -405,11 +405,21 @@ double get_aspect_ratio(void)
double aspect_ratio = is_pal ? NES_PAL_PAR : NES_NTSC_PAR;
if (aspect_ratio_mode == 1)
{
aspect_ratio = NES_NTSC_PAR;
}
else if (aspect_ratio_mode == 2)
{
aspect_ratio = NES_PAL_PAR;
}
else if (aspect_ratio_mode == 3)
{
aspect_ratio = NES_4_3_DAR;
}
else if (aspect_ratio_mode == 4)
{
aspect_ratio = 0;
}
return aspect_ratio;
}
@ -1076,6 +1086,8 @@ static void check_variables(void)
aspect_ratio_mode = 2;
else if (!strcmp(var.value, "4:3"))
aspect_ratio_mode = 3;
else if (!strcmp(var.value, "uncorrected"))
aspect_ratio_mode = 4;
else
aspect_ratio_mode = 0;
}

View File

@ -209,10 +209,11 @@ struct retro_core_option_v2_definition option_defs_us[] = {
NULL,
"video",
{
{ "auto", "Auto" },
{ "ntsc", "NTSC" },
{ "pal", "PAL" },
{ "4:3", "4:3" },
{ "auto", "Auto" },
{ "ntsc", "NTSC" },
{ "pal", "PAL" },
{ "4:3", "4:3" },
{ "uncorrected", "Uncorrected" },
{ NULL, NULL },
},
"auto"