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:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user