fixes for audio and video, add psp-like scaling

This commit is contained in:
kub 2024-02-05 20:14:06 +01:00
parent 455cecf973
commit 4abc40d56b
5 changed files with 527 additions and 402 deletions

21
platform/ps2/menu.c Normal file
View file

@ -0,0 +1,21 @@
static const char *men_vscaling_opts[] = { "OFF", "fullscreen", "borderless", NULL };
static const char *men_hscaling_opts[] = { "1:1", "4:3", "extended", "fullwidth", NULL };
static const char *men_filter_opts[] = { "nearest", "bilinear", NULL };
#define MENU_OPTIONS_GFX \
mee_enum ("Vertical scaling", MA_OPT_VSCALING, currentConfig.vscaling, men_vscaling_opts), \
mee_enum ("Aspect ratio", MA_OPT_SCALING, currentConfig.scaling, men_hscaling_opts), \
mee_enum ("Scaler type", MA_OPT3_FILTERING, currentConfig.filter, men_filter_opts), \
mee_onoff ("Wait for vsync", MA_OPT3_VSYNC, currentConfig.EmuOpt, EOPT_VSYNC), \
#define MENU_OPTIONS_ADV
static menu_entry e_menu_sms_options[];
static menu_entry e_menu_keyconfig[];
void psp_menu_init(void)
{
me_enable(e_menu_sms_options, MA_SMSOPT_GHOSTING, 0);
me_enable(e_menu_keyconfig, MA_CTRL_DEADZONE, 0);
}