SDL Graphics mode detection and checking if valid, CFG saves only configuration for valid modes where the user set <3 | Imperfect | Unsupported.

Modes are not sorted yet (cosmetic)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@199 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-10-05 02:10:53 +00:00
parent 0705aae104
commit 40fe3ccf09
8 changed files with 140 additions and 118 deletions

View File

@@ -606,7 +606,7 @@ int Charger_INI(struct S_Config * Conf)
if ((Retour=Charger_INI_Get_values (Fichier,Buffer,"Default_video_mode",1,Valeurs)))
goto Erreur_Retour;
if ((Valeurs[0]<0) || (Valeurs[0]>NB_MODES_VIDEO))
if ((Valeurs[0]<0) || (Valeurs[0]>=Nb_modes_video))
goto Erreur_ERREUR_INI_CORROMPU;
Conf->Resolution_par_defaut=Valeurs[0];