Menu: Palette size is now free, 1-256 on X and 1-16 on Y (non-powers-of-two are accepted)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@622 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -709,7 +709,7 @@ int Charger_INI(struct S_Config * Conf)
|
||||
// Optionnel, nombre de colonnes dans la palette (>98.0%)
|
||||
if (!Charger_INI_Get_values (Fichier,Buffer,"Palette_Cells_X",1,Valeurs))
|
||||
{
|
||||
if ((Valeurs[0]<1) || (Valeurs[0]>32))
|
||||
if ((Valeurs[0]<1) || (Valeurs[0]>256))
|
||||
goto Erreur_ERREUR_INI_CORROMPU;
|
||||
Conf->Palette_Cells_X=Valeurs[0];
|
||||
}
|
||||
@@ -717,12 +717,10 @@ int Charger_INI(struct S_Config * Conf)
|
||||
// Optionnel, nombre de lignes dans la palette (>98.0%)
|
||||
if (!Charger_INI_Get_values (Fichier,Buffer,"Palette_Cells_Y",1,Valeurs))
|
||||
{
|
||||
if (Valeurs[0]!=1 && Valeurs[0]!=2 && Valeurs[0]!=4 && Valeurs[0]!=8 && Valeurs[0]!=16)
|
||||
if (Valeurs[0]<1 || Valeurs[0]>16)
|
||||
goto Erreur_ERREUR_INI_CORROMPU;
|
||||
Conf->Palette_Cells_Y=Valeurs[0];
|
||||
}
|
||||
if (Conf->Palette_Cells_X*Conf->Palette_Cells_Y>256)
|
||||
Conf->Palette_Cells_X=256/Conf->Palette_Cells_Y;
|
||||
|
||||
fclose(Fichier);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user