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

@@ -991,7 +991,7 @@ void Initialiser_mode_video(int Largeur, int Hauteur, int Fullscreen)
if (!Fullscreen)
Resolution_actuelle=0;
else
for (Indice=1; Indice<NB_MODES_VIDEO; Indice++)
for (Indice=1; Indice<Nb_modes_video; Indice++)
{
if (Mode_video[Indice].Largeur==Largeur_ecran &&
Mode_video[Indice].Hauteur==Hauteur_ecran)