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:
2
graph.c
2
graph.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user