-Save pixel ratio in infile
-Fix a bug if a wrong grid xor value was set (was mostly harmless) -Some cleanup. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1257 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -335,6 +335,7 @@ int Save_INI_set_values(FILE * old_file,FILE * new_file,char * buffer,char * opt
|
||||
free(result_buffer);
|
||||
free(upper_buffer);
|
||||
free(option_upper);
|
||||
DEBUG("END OF FILE",0);
|
||||
return ERROR_INI_CORRUPTED;
|
||||
}
|
||||
|
||||
@@ -652,6 +653,12 @@ int Save_INI(T_Config * conf)
|
||||
values[0]=(conf->Grid_XOR_color);
|
||||
if ((return_code=Save_INI_set_values (Ancien_fichier,Nouveau_fichier,buffer,"Grid_XOR_color",1,values,0)))
|
||||
goto Erreur_Retour;
|
||||
|
||||
values[0]=(Pixel_ratio);
|
||||
if ((return_code=Save_INI_set_values (Ancien_fichier,Nouveau_fichier,buffer,"Pixel_ratio",1,values,0))) {
|
||||
DEBUG("saving pixel ratio",return_code);
|
||||
goto Erreur_Retour;
|
||||
}
|
||||
|
||||
Save_INI_flush(Ancien_fichier,Nouveau_fichier,buffer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user