Added component cable check

This commit is contained in:
fabio.olimpieri 2012-08-12 16:37:09 +00:00
parent 019e4d8524
commit acc37ba021
2 changed files with 9 additions and 2 deletions

View File

@ -362,7 +362,8 @@ int set_video_mode()
rmode = VIDEO_GetPreferredMode(NULL); rmode = VIDEO_GetPreferredMode(NULL);
if ((rmode->viTVMode)!=VI_TVMODE_PAL_INT) return -1; if (!VIDEO_HaveComponentCable()) return 1;
if ((rmode->viTVMode)!=VI_TVMODE_PAL_INT) return 2;
switch(ordenador.progressive) switch(ordenador.progressive)
{ {

View File

@ -578,10 +578,16 @@ static void screen_settings(void)
} }
if (submenus[3] != submenus_old[3]) if (submenus[3] != submenus_old[3])
{ {
if (set_video_mode()) switch (set_video_mode())
{ {
case 1:
msgInfo("Necessary component cable",3000,NULL);
ordenador.progressive = 0;
break;
case 2:
msgInfo("Only avalaible from 576i PAL",3000,NULL); msgInfo("Only avalaible from 576i PAL",3000,NULL);
ordenador.progressive = 0; ordenador.progressive = 0;
break;
} }
} }
} }