PAL/NTSC INI option for Menu core.

This commit is contained in:
sorgelig
2019-01-16 13:50:32 +08:00
parent e9b2dc2c85
commit 8d6bcfc227
4 changed files with 4 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ vscale_border=0 ; set vertical border for TVs cutting the upper/bottom pa
;bootscreen=0 ; uncomment to disable boot screen of some cores like Minimig.
;mouse_throttle=10 ; 1-100 mouse speed divisor. Useful for very sensitive mouses
rbf_hide_datecode=0 ; 1 - hides datecodes from rbf file names. Press F2 for quick temporary toggle
menu_pal=0 ; 1 - PAL mode for menu core
; USER button emulation by keybaord. Usually it's reset button.
; 0 - lctrl+lalt+ralt (lctrl+lgui+rgui on keyrah)

View File

@@ -43,6 +43,7 @@ const ini_var_t ini_vars[] = {
{ "VSCALE_MODE", (void*)(&(cfg.vscale_mode)), UINT8, 0, 3, 1 },
{ "VSCALE_BORDER", (void*)(&(cfg.vscale_border)), UINT8, 0, 100, 1 },
{ "RBF_HIDE_DATECODE", (void*)(&(cfg.rbf_hide_datecode)), UINT8, 0, 1, 1 },
{ "MENU_PAL", (void*)(&(cfg.menu_pal)), UINT8, 0, 1, 1 },
};
// mist ini config

1
cfg.h
View File

@@ -32,6 +32,7 @@ typedef struct {
uint8_t vscale_mode;
uint8_t vscale_border;
uint8_t rbf_hide_datecode;
uint8_t menu_pal;
char video_conf[1024];
} cfg_t;

View File

@@ -2807,7 +2807,7 @@ static void setVideo()
for (int i = 9; i < 21; i++)
{
printf("0x%X, ", vitems[i]);
if (i & 1) spi_w(vitems[i] | ((i==9 && cfg.vsync_adjust==2) ? 0x8000 : 0));
if (i & 1) spi_w(vitems[i] | ((i==9 && (is_menu_core() ? cfg.menu_pal : (cfg.vsync_adjust==2))) ? 0x8000 : 0));
else
{
spi_w(vitems[i]);