Issue 284:Made the UI zoomed by x2 maximum, by default (Menu_ratio = -2 in gfx2.ini). Fix issue 286.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1249 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
e351605a24
commit
9cb3f7a70d
@ -74,7 +74,12 @@
|
||||
; bar according to the resolution| d'outils suivant la résolution
|
||||
; 2: Slightly adapt the ratio of | 2: Adapter légèrement les proportions
|
||||
; the menus and tool-bar | des menus et de la barre d'outils
|
||||
Menu_ratio = 254 ; (default -2)
|
||||
; -1:Do not adapt (like 0) | -1:Ne pas adapter (comme 0)
|
||||
; -2:Stretch by x2 maximum | -2:Etire au double de taille si possible
|
||||
; -3:Stretch by x3 maximum | -3:Etire au triple de taille si possible
|
||||
; -4:Stretch by x4 maximum | -3:Etire au quadruple de taille si
|
||||
; | possible.
|
||||
Menu_ratio = -2 ; (default -2)
|
||||
|
||||
[FILE_SELECTOR] # [SELECTEUR_DE_FICHIERS]
|
||||
|
||||
|
||||
@ -523,7 +523,7 @@ int Load_INI(T_Config * conf)
|
||||
|
||||
if ((return_code=Load_INI_get_values (file,buffer,"Menu_ratio",1,values)))
|
||||
goto Erreur_Retour;
|
||||
if (values[0]>2)
|
||||
if ((values[0]<-4) || (values[0]>2))
|
||||
goto Erreur_ERREUR_INI_CORROMPU;
|
||||
conf->Ratio=values[0];
|
||||
|
||||
|
||||
11
saveini.c
11
saveini.c
@ -82,20 +82,21 @@ int Save_INI_reach_group(FILE * old_file,FILE * new_file,char * buffer,char * gr
|
||||
int Save_INI_char_in_value_alphabet(char c)
|
||||
{
|
||||
if (
|
||||
( // Chiffre
|
||||
( // Digit
|
||||
(c>='0') &&
|
||||
(c<='9')
|
||||
) ||
|
||||
( // Lettre majuscule
|
||||
( // Uppercase letter
|
||||
(c>='A') &&
|
||||
(c<='Z')
|
||||
) ||
|
||||
( // Lettre minuscule
|
||||
( // Lowerchase letter
|
||||
(c>='a') &&
|
||||
(c<='z')
|
||||
) ||
|
||||
(c == '$') // Symbole d'hexadécimal
|
||||
|| (c== '.') // Point (dans les noms de fichiers)
|
||||
(c == '$') || // Hexa prefix
|
||||
(c == '-') || // Minus sign
|
||||
(c== '.') // Dot (in filenames)
|
||||
)
|
||||
return 1;
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user