Fixed some missed translations. Fixed doxygen (mis)handling of packed structures.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@692 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2009-03-23 19:24:16 +00:00
parent 346d940889
commit 2602c591eb
15 changed files with 51 additions and 39 deletions

View File

@ -1210,13 +1210,13 @@ ENABLE_PREPROCESSING = YES
# compilation will be performed. Macro expansion can be done in a controlled # compilation will be performed. Macro expansion can be done in a controlled
# way by setting EXPAND_ONLY_PREDEF to YES. # way by setting EXPAND_ONLY_PREDEF to YES.
MACRO_EXPANSION = NO MACRO_EXPANSION = YES
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
# then the macro expansion is limited to the macros specified with the # then the macro expansion is limited to the macros specified with the
# PREDEFINED and EXPAND_AS_DEFINED tags. # PREDEFINED and EXPAND_AS_DEFINED tags.
EXPAND_ONLY_PREDEF = NO EXPAND_ONLY_PREDEF = YES
# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
# in the INCLUDE_PATH (see below) will be search if a #include is found. # in the INCLUDE_PATH (see below) will be search if a #include is found.
@ -1244,7 +1244,7 @@ INCLUDE_FILE_PATTERNS =
# undefined via #undef or recursively expanded use the := operator # undefined via #undef or recursively expanded use the := operator
# instead of the = operator. # instead of the = operator.
PREDEFINED = PREDEFINED = __attribute__(x)=
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
# this tag can be used to specify a list of macro names that should be expanded. # this tag can be used to specify a list of macro names that should be expanded.

4
aide.c
View File

@ -83,7 +83,7 @@ const char * Valeur_Raccourci_Clavier(word NumeroRaccourci)
return Noms_raccourcis; return Noms_raccourcis;
} }
} }
void Redefinir_controle(word *Raccourci, int x_pos, int y_pos) void Redefinir_controle(word *shortcut, int x_pos, int y_pos)
{ {
Effacer_curseur(); Effacer_curseur();
Print_dans_fenetre(x_pos,y_pos,"*PRESS KEY OR BUTTON*",CM_Noir,CM_Clair); Print_dans_fenetre(x_pos,y_pos,"*PRESS KEY OR BUTTON*",CM_Noir,CM_Clair);
@ -95,7 +95,7 @@ void Redefinir_controle(word *Raccourci, int x_pos, int y_pos)
return; return;
if (Touche!=0) if (Touche!=0)
{ {
*Raccourci=Touche; *shortcut=Touche;
return; return;
} }
} }

View File

@ -28,7 +28,7 @@
@param Debut_Y upper edge coordinate in the picture @param Debut_Y upper edge coordinate in the picture
@param Fin_X right edge coordinate in the picture @param Fin_X right edge coordinate in the picture
@param Fin_Y bottom edge coordinate in the picture @param Fin_Y bottom edge coordinate in the picture
@param effacement If 1, the area is also cleared from the picture. @param clear If 1, the area is also cleared from the picture.
*/ */
void Capturer_brosse(short Debut_X,short Debut_Y,short Fin_X,short Fin_Y,short clear); void Capturer_brosse(short Debut_X,short Debut_Y,short Fin_X,short Fin_Y,short clear);

View File

@ -37,7 +37,7 @@
#include "palette.h" #include "palette.h"
#include "input.h" #include "input.h"
word Palette_Compter_nb_couleurs_utilisees(dword* Tableau) word Palette_Compter_nb_couleurs_utilisees(dword* usage)
{ {
int Nombre_De_Pixels=0; int Nombre_De_Pixels=0;
Uint8* Pixel_Courant=Principal_Ecran; Uint8* Pixel_Courant=Principal_Ecran;
@ -45,7 +45,7 @@ word Palette_Compter_nb_couleurs_utilisees(dword* Tableau)
word Nombre_Couleurs=0; word Nombre_Couleurs=0;
int i; int i;
for (i=0;i<256;i++) Tableau[i]=0; for (i=0;i<256;i++) usage[i]=0;
//Calcul du nombre de pixels dans l'image //Calcul du nombre de pixels dans l'image
Nombre_De_Pixels=Principal_Hauteur_image*Principal_Largeur_image; Nombre_De_Pixels=Principal_Hauteur_image*Principal_Largeur_image;
@ -55,7 +55,7 @@ word Palette_Compter_nb_couleurs_utilisees(dword* Tableau)
{ {
Couleur=*Pixel_Courant; //on lit la couleur dans l'écran Couleur=*Pixel_Courant; //on lit la couleur dans l'écran
Tableau[Couleur]++; //Un point de plus pour cette couleur usage[Couleur]++; //Un point de plus pour cette couleur
// On passe au pixel suivant // On passe au pixel suivant
Pixel_Courant++; Pixel_Courant++;
@ -64,7 +64,7 @@ word Palette_Compter_nb_couleurs_utilisees(dword* Tableau)
//On va maintenant compter dans la table les couleurs utilisées: //On va maintenant compter dans la table les couleurs utilisées:
for(i=0;i<256;i++) for(i=0;i<256;i++)
{ {
if (Tableau[i]!=0) if (usage[i]!=0)
Nombre_Couleurs++; Nombre_Couleurs++;
} }

View File

@ -37,7 +37,7 @@ void Effacer_image_courante_Stencil(byte Couleur, byte * Pochoir);
void Wait_VBL(void); void Wait_VBL(void);
void Tempo_jauge(byte Vitesse); void Tempo_jauge(byte Vitesse);
dword Round_div(dword Numerateur,dword Diviseur); dword Round_div(dword Numerateur,dword Diviseur);
word Palette_Compter_nb_couleurs_utilisees(dword * Tableau); word Palette_Compter_nb_couleurs_utilisees(dword * usage);
void Pixel_dans_ecran_courant (word x,word y,byte Couleur); void Pixel_dans_ecran_courant (word x,word y,byte Couleur);
void Pixel_dans_brosse (word x,word y,byte Couleur); void Pixel_dans_brosse (word x,word y,byte Couleur);

View File

@ -48,7 +48,7 @@ GFX2_GLOBAL T_Config Config;
GFX2_GLOBAL word Config_Touche[NB_TOUCHES_SPECIALES][2]; GFX2_GLOBAL word Config_Touche[NB_TOUCHES_SPECIALES][2];
struct S_Mode_video typedef struct T_Video_mode
{ {
short Width; short Width;
short Height; short Height;
@ -56,7 +56,7 @@ struct S_Mode_video
word Fullscreen; word Fullscreen;
byte Etat; // 0:Cool 1:OK ; 2:Bof ; 3:Naze ; si on rajoute +128 => incompatible byte Etat; // 0:Cool 1:OK ; 2:Bof ; 3:Naze ; si on rajoute +128 => incompatible
}; };
GFX2_GLOBAL struct S_Mode_video Mode_video[MAX_MODES_VIDEO]; GFX2_GLOBAL T_Video_mode Mode_video[MAX_MODES_VIDEO];
GFX2_GLOBAL int Nb_modes_video; // Nombre de modes réellement recensés dans Mode_video[] GFX2_GLOBAL int Nb_modes_video; // Nombre de modes réellement recensés dans Mode_video[]

6
init.c
View File

@ -1547,8 +1547,8 @@ void Definir_mode_video(short width,
// Utilisé pour trier les modes retournés par SDL // Utilisé pour trier les modes retournés par SDL
int Compare_modes_video(const void *p1, const void *p2) int Compare_modes_video(const void *p1, const void *p2)
{ {
const struct S_Mode_video *Mode1 = (const struct S_Mode_video *)p1; const T_Video_mode *Mode1 = (const T_Video_mode *)p1;
const struct S_Mode_video *Mode2 = (const struct S_Mode_video *)p2; const T_Video_mode *Mode2 = (const T_Video_mode *)p2;
// Tris par largeur // Tris par largeur
if(Mode1->Width - Mode2->Width) if(Mode1->Width - Mode2->Width)
@ -1649,7 +1649,7 @@ void Definition_des_modes_video(void)
} }
} }
// Tri des modes : ceux trouvés par SDL ont été listés à la fin. // Tri des modes : ceux trouvés par SDL ont été listés à la fin.
qsort(&Mode_video[1], Nb_modes_video - 1, sizeof(struct S_Mode_video), Compare_modes_video); qsort(&Mode_video[1], Nb_modes_video - 1, sizeof(T_Video_mode), Compare_modes_video);
} }
} }

View File

@ -2693,7 +2693,7 @@ typedef struct
typedef struct typedef struct
{ {
word Pos_X; // Abscisse où devrait être affichée l'image word Pos_X; // Abscisse où devrait être affichée l'image
word y_pos; // Ordonnée où devrait être affichée l'image word Pos_Y; // Ordonnée où devrait être affichée l'image
word Largeur_image; // width de l'image word Largeur_image; // width de l'image
word Hauteur_image; // height de l'image word Hauteur_image; // height de l'image
byte Indicateur; // Informations diverses sur l'image byte Indicateur; // Informations diverses sur l'image
@ -2989,7 +2989,7 @@ void Load_GIF(void)
// lecture de 10 derniers octets // lecture de 10 derniers octets
if ( read_word_le(GIF_Fichier,&(IDB.Pos_X)) if ( read_word_le(GIF_Fichier,&(IDB.Pos_X))
&& read_word_le(GIF_Fichier,&(IDB.y_pos)) && read_word_le(GIF_Fichier,&(IDB.Pos_Y))
&& read_word_le(GIF_Fichier,&(IDB.Largeur_image)) && read_word_le(GIF_Fichier,&(IDB.Largeur_image))
&& read_word_le(GIF_Fichier,&(IDB.Hauteur_image)) && read_word_le(GIF_Fichier,&(IDB.Hauteur_image))
&& read_byte(GIF_Fichier,&(IDB.Indicateur)) && read_byte(GIF_Fichier,&(IDB.Indicateur))
@ -3312,7 +3312,7 @@ void Save_GIF(void)
Block_indicateur=0x2C; Block_indicateur=0x2C;
IDB.Pos_X=0; IDB.Pos_X=0;
IDB.y_pos=0; IDB.Pos_Y=0;
IDB.Largeur_image=Principal_Largeur_image; IDB.Largeur_image=Principal_Largeur_image;
IDB.Hauteur_image=Principal_Hauteur_image; IDB.Hauteur_image=Principal_Hauteur_image;
IDB.Indicateur=0x07; // Image non entrelacée, pas de palette locale. IDB.Indicateur=0x07; // Image non entrelacée, pas de palette locale.

View File

@ -1453,7 +1453,7 @@ void Fenetre_Effacer_bouton_saisie(T_Bouton_special * button)
T_Bouton_normal * Fenetre_Definir_bouton_normal(word x_pos, word y_pos, T_Bouton_normal * Fenetre_Definir_bouton_normal(word x_pos, word y_pos,
word width, word height, word width, word height,
char * title, byte Lettre_soulignee, char * title, byte Lettre_soulignee,
byte clickable, word Raccourci) byte clickable, word shortcut)
{ {
T_Bouton_normal * Temp=NULL; T_Bouton_normal * Temp=NULL;
@ -1467,7 +1467,7 @@ T_Bouton_normal * Fenetre_Definir_bouton_normal(word x_pos, word y_pos,
Temp->Pos_Y =y_pos; Temp->Pos_Y =y_pos;
Temp->Width =width; Temp->Width =width;
Temp->Height =height; Temp->Height =height;
Temp->Raccourci=Raccourci; Temp->Raccourci=shortcut;
Temp->Repetable=0; Temp->Repetable=0;
Temp->Next=Fenetre_Liste_boutons_normal; Temp->Next=Fenetre_Liste_boutons_normal;
@ -1482,7 +1482,7 @@ T_Bouton_normal * Fenetre_Definir_bouton_normal(word x_pos, word y_pos,
T_Bouton_normal * Fenetre_Definir_bouton_repetable(word x_pos, word y_pos, T_Bouton_normal * Fenetre_Definir_bouton_repetable(word x_pos, word y_pos,
word width, word height, word width, word height,
char * title, byte Lettre_soulignee, char * title, byte Lettre_soulignee,
byte clickable, word Raccourci) byte clickable, word shortcut)
{ {
T_Bouton_normal * Temp=NULL; T_Bouton_normal * Temp=NULL;
@ -1496,7 +1496,7 @@ T_Bouton_normal * Fenetre_Definir_bouton_repetable(word x_pos, word y_pos,
Temp->Pos_Y =y_pos; Temp->Pos_Y =y_pos;
Temp->Width =width; Temp->Width =width;
Temp->Height =height; Temp->Height =height;
Temp->Raccourci=Raccourci; Temp->Raccourci=shortcut;
Temp->Repetable=1; Temp->Repetable=1;
Temp->Next=Fenetre_Liste_boutons_normal; Temp->Next=Fenetre_Liste_boutons_normal;

View File

@ -20,7 +20,7 @@
*/ */
void Gestion_principale (void); void Gestion_principale (void);
void Tracer_cadre_de_bouton_du_menu(byte btn_number,byte Enfonce); void Tracer_cadre_de_bouton_du_menu(byte btn_number,byte pressed);
void Desenclencher_bouton (int btn_number); void Desenclencher_bouton (int btn_number);
void Enclencher_bouton (int btn_number,byte click); void Enclencher_bouton (int btn_number,byte click);
void Annuler_les_effets (void); void Annuler_les_effets (void);
@ -48,11 +48,11 @@ void Fenetre_Dessiner_bouton_saisie(word x_pos,word y_pos,word Largeur_en_caract
T_Bouton_normal * Fenetre_Definir_bouton_normal(word x_pos, word y_pos, T_Bouton_normal * Fenetre_Definir_bouton_normal(word x_pos, word y_pos,
word width, word height, word width, word height,
char * title,byte Lettre_soulignee, char * title,byte Lettre_soulignee,
byte clickable, word Raccourci); byte clickable, word shortcut);
T_Bouton_normal * Fenetre_Definir_bouton_repetable(word x_pos, word y_pos, T_Bouton_normal * Fenetre_Definir_bouton_repetable(word x_pos, word y_pos,
word width, word height, word width, word height,
char * title,byte Lettre_soulignee, char * title,byte Lettre_soulignee,
byte clickable, word Raccourci); byte clickable, word shortcut);
T_Bouton_palette * Fenetre_Definir_bouton_palette(word x_pos, word y_pos); T_Bouton_palette * Fenetre_Definir_bouton_palette(word x_pos, word y_pos);
void Fenetre_Effacer_tags(void); void Fenetre_Effacer_tags(void);

6
op_c.c
View File

@ -508,7 +508,7 @@ ENDCRUSH:
} }
} }
void Cluster_Split(Cluster * c,Cluster * c1,Cluster * c2,int Teinte,Table_occurence * to) void Cluster_Split(Cluster * c,Cluster * c1,Cluster * c2,int hue,Table_occurence * to)
{ {
int limit; int limit;
int cumul; int cumul;
@ -516,7 +516,7 @@ void Cluster_Split(Cluster * c,Cluster * c1,Cluster * c2,int Teinte,Table_occure
limit=(c->occurences)/2; limit=(c->occurences)/2;
cumul=0; cumul=0;
if (Teinte==0) if (hue==0)
{ {
for (r=c->rmin<<16;r<=c->rmax<<16;r+=1<<16) for (r=c->rmin<<16;r<=c->rmax<<16;r+=1<<16)
{ {
@ -556,7 +556,7 @@ void Cluster_Split(Cluster * c,Cluster * c1,Cluster * c2,int Teinte,Table_occure
c2->bmin=c->bmin; c2->bmax=c->bmax; c2->bmin=c->bmin; c2->bmax=c->bmax;
} }
else else
if (Teinte==1) if (hue==1)
{ {
for (g=c->vmin<<8;g<=c->vmax<<8;g+=1<<8) for (g=c->vmin<<8;g<=c->vmax<<8;g+=1<<8)

2
op_c.h
View File

@ -170,7 +170,7 @@ void TO_Compter_occurences(Table_occurence * t,Bitmap24B image,int size);
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
void Cluster_Analyser(Cluster * c,Table_occurence * to); void Cluster_Analyser(Cluster * c,Table_occurence * to);
void Cluster_Split(Cluster * c,Cluster * c1,Cluster * c2,int Teinte,Table_occurence * to); void Cluster_Split(Cluster * c,Cluster * c1,Cluster * c2,int hue,Table_occurence * to);
void Cluster_Calculer_teinte(Cluster * c,Table_occurence * to); void Cluster_Calculer_teinte(Cluster * c,Table_occurence * to);

View File

@ -963,7 +963,7 @@ Polyform_12_0
Polyform_12_8 Polyform_12_8
Polygon_12_0 Polygon_12_0
Polygon_12_9 Polygon_12_9
Cursor_position cursor_position
Help_position Help_position
Find_last_slash Find_last_slash
Find_file_in_fileselector Find_file_in_fileselector
@ -1222,7 +1222,7 @@ OT_init
OT_new OT_new
OT_set OT_set
GFX_sieve_pattern GFX_sieve_pattern
Help_table Help_section
Facteur_A_table Facteur_A_table
Facteur_B_table Facteur_B_table
Zoom_factor_table Zoom_factor_table
@ -1514,6 +1514,7 @@ Compteur
counter_x counter_x
counter_y counter_y
repetitions repetitions
conf
config_dir config_dir
config_parent_dir config_parent_dir
confirmation confirmation
@ -1681,7 +1682,7 @@ end_y_mag
block_end block_end
Find_file_fast Find_file_fast
temp_float temp_float
filename fname
Fonction Fonction
font_1 font_1
font_2 font_2
@ -1702,8 +1703,8 @@ Hauteur_Curseur_jauge
box_height box_height
cell_height cell_height
chosen_height chosen_height
Hauteur_curseur Cursor_height
Hauteur_image Image_height
initial_image_height initial_image_height
max_slider_height max_slider_height
Header Header
@ -1835,6 +1836,7 @@ best_color_1
best_color_2 best_color_2
best_difference best_difference
best_width best_width
Mix
message message
MessageErreur MessageErreur
Methode Methode
@ -2134,9 +2136,9 @@ Section
help_section help_section
expected_section expected_section
section_read section_read
seclection_start selection_start
seclection_start1 selection_start1
seclection_start2 selection_start2
selection_end selection_end
selection_end1 selection_end1
selection_end2 selection_end2
@ -2212,6 +2214,7 @@ helptable_spheres
helptable_airbrush helptable_airbrush
helptable_text helptable_text
helptable_undo helptable_undo
Help_table
conversion_table conversion_table
conversion_table conversion_table
replace_table replace_table
@ -2219,6 +2222,9 @@ table_dec
table_inc table_inc
key_labels key_labels
Taille Taille
Size_1
Size_2
Size_3
dest_size dest_size
source_size source_size
x_size x_size
@ -3065,7 +3071,7 @@ Func_read
Func_line_XOR Func_line_XOR
Func_procsline Func_procsline
Func_remap Func_remap
T_polygon_edge T_Polygon_edge
T_Key_config T_Key_config
T_key_label T_key_label
T_List_of_pages T_List_of_pages

View File

@ -1514,6 +1514,7 @@ Compteur
Compteur_X Compteur_X
Compteur_Y Compteur_Y
Compteur_de_repetitions Compteur_de_repetitions
Conf
Config_Dir Config_Dir
Config_ParentDir Config_ParentDir
Confirme Confirme
@ -1835,6 +1836,7 @@ Meilleure_couleur_1
Meilleure_couleur_2 Meilleure_couleur_2
Meilleure_difference Meilleure_difference
Meilleure_largeur Meilleure_largeur
Melange
Message Message
MessageErreur MessageErreur
Methode Methode
@ -2212,6 +2214,7 @@ TableAideSpheres
TableAideSpray TableAideSpray
TableAideTexte TableAideTexte
TableAideUndo TableAideUndo
Table_aide
Table_conv Table_conv
Table_de_conversion Table_de_conversion
Table_de_remplacement Table_de_remplacement
@ -2219,6 +2222,9 @@ Table_dec
Table_inc Table_inc
Table_touches Table_touches
Taille Taille
Taille_1
Taille_2
Taille_3
TailleD TailleD
TailleS TailleS
Taille_X Taille_X

Binary file not shown.