mirror of
https://github.com/libretro/nestopia.git
synced 2024-11-23 08:29:47 +00:00
Add 'uncorrected' aspect ratio
This commit is contained in:
parent
9f60034086
commit
e98a11f483
@ -405,11 +405,21 @@ double get_aspect_ratio(void)
|
|||||||
double aspect_ratio = is_pal ? NES_PAL_PAR : NES_NTSC_PAR;
|
double aspect_ratio = is_pal ? NES_PAL_PAR : NES_NTSC_PAR;
|
||||||
|
|
||||||
if (aspect_ratio_mode == 1)
|
if (aspect_ratio_mode == 1)
|
||||||
|
{
|
||||||
aspect_ratio = NES_NTSC_PAR;
|
aspect_ratio = NES_NTSC_PAR;
|
||||||
|
}
|
||||||
else if (aspect_ratio_mode == 2)
|
else if (aspect_ratio_mode == 2)
|
||||||
|
{
|
||||||
aspect_ratio = NES_PAL_PAR;
|
aspect_ratio = NES_PAL_PAR;
|
||||||
|
}
|
||||||
else if (aspect_ratio_mode == 3)
|
else if (aspect_ratio_mode == 3)
|
||||||
|
{
|
||||||
aspect_ratio = NES_4_3_DAR;
|
aspect_ratio = NES_4_3_DAR;
|
||||||
|
}
|
||||||
|
else if (aspect_ratio_mode == 4)
|
||||||
|
{
|
||||||
|
aspect_ratio = 0;
|
||||||
|
}
|
||||||
|
|
||||||
return aspect_ratio;
|
return aspect_ratio;
|
||||||
}
|
}
|
||||||
@ -1076,6 +1086,8 @@ static void check_variables(void)
|
|||||||
aspect_ratio_mode = 2;
|
aspect_ratio_mode = 2;
|
||||||
else if (!strcmp(var.value, "4:3"))
|
else if (!strcmp(var.value, "4:3"))
|
||||||
aspect_ratio_mode = 3;
|
aspect_ratio_mode = 3;
|
||||||
|
else if (!strcmp(var.value, "uncorrected"))
|
||||||
|
aspect_ratio_mode = 4;
|
||||||
else
|
else
|
||||||
aspect_ratio_mode = 0;
|
aspect_ratio_mode = 0;
|
||||||
}
|
}
|
||||||
|
@ -213,6 +213,7 @@ struct retro_core_option_v2_definition option_defs_us[] = {
|
|||||||
{ "ntsc", "NTSC" },
|
{ "ntsc", "NTSC" },
|
||||||
{ "pal", "PAL" },
|
{ "pal", "PAL" },
|
||||||
{ "4:3", "4:3" },
|
{ "4:3", "4:3" },
|
||||||
|
{ "uncorrected", "Uncorrected" },
|
||||||
{ NULL, NULL },
|
{ NULL, NULL },
|
||||||
},
|
},
|
||||||
"auto"
|
"auto"
|
||||||
|
Loading…
Reference in New Issue
Block a user