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
# 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
# then the macro expansion is limited to the macros specified with the
# 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
# 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
# instead of the = operator.
PREDEFINED =
PREDEFINED = __attribute__(x)=
# 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.

4
aide.c
View File

@ -83,7 +83,7 @@ const char * Valeur_Raccourci_Clavier(word NumeroRaccourci)
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();
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;
if (Touche!=0)
{
*Raccourci=Touche;
*shortcut=Touche;
return;
}
}

View File

@ -28,7 +28,7 @@
@param Debut_Y upper edge coordinate in the picture
@param Fin_X right 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);

View File

@ -37,7 +37,7 @@
#include "palette.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;
Uint8* Pixel_Courant=Principal_Ecran;
@ -45,7 +45,7 @@ word Palette_Compter_nb_couleurs_utilisees(dword* Tableau)
word Nombre_Couleurs=0;
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
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
Tableau[Couleur]++; //Un point de plus pour cette couleur
usage[Couleur]++; //Un point de plus pour cette couleur
// On passe au pixel suivant
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:
for(i=0;i<256;i++)
{
if (Tableau[i]!=0)
if (usage[i]!=0)
Nombre_Couleurs++;
}

View File

@ -37,7 +37,7 @@ void Effacer_image_courante_Stencil(byte Couleur, byte * Pochoir);
void Wait_VBL(void);
void Tempo_jauge(byte Vitesse);
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_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];
struct S_Mode_video
typedef struct T_Video_mode
{
short Width;
short Height;
@ -56,7 +56,7 @@ struct S_Mode_video
word Fullscreen;
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[]

6
init.c
View File

@ -1547,8 +1547,8 @@ void Definir_mode_video(short width,
// Utilisé pour trier les modes retournés par SDL
int Compare_modes_video(const void *p1, const void *p2)
{
const struct S_Mode_video *Mode1 = (const struct S_Mode_video *)p1;
const struct S_Mode_video *Mode2 = (const struct S_Mode_video *)p2;
const T_Video_mode *Mode1 = (const T_Video_mode *)p1;
const T_Video_mode *Mode2 = (const T_Video_mode *)p2;
// Tris par largeur
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.
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
{
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 Hauteur_image; // height de l'image
byte Indicateur; // Informations diverses sur l'image
@ -2989,7 +2989,7 @@ void Load_GIF(void)
// lecture de 10 derniers octets
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.Hauteur_image))
&& read_byte(GIF_Fichier,&(IDB.Indicateur))
@ -3312,7 +3312,7 @@ void Save_GIF(void)
Block_indicateur=0x2C;
IDB.Pos_X=0;
IDB.y_pos=0;
IDB.Pos_Y=0;
IDB.Largeur_image=Principal_Largeur_image;
IDB.Hauteur_image=Principal_Hauteur_image;
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,
word width, word height,
char * title, byte Lettre_soulignee,
byte clickable, word Raccourci)
byte clickable, word shortcut)
{
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->Width =width;
Temp->Height =height;
Temp->Raccourci=Raccourci;
Temp->Raccourci=shortcut;
Temp->Repetable=0;
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,
word width, word height,
char * title, byte Lettre_soulignee,
byte clickable, word Raccourci)
byte clickable, word shortcut)
{
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->Width =width;
Temp->Height =height;
Temp->Raccourci=Raccourci;
Temp->Raccourci=shortcut;
Temp->Repetable=1;
Temp->Next=Fenetre_Liste_boutons_normal;

View File

@ -20,7 +20,7 @@
*/
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 Enclencher_bouton (int btn_number,byte click);
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,
word width, word height,
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,
word width, word height,
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);
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 cumul;
@ -516,7 +516,7 @@ void Cluster_Split(Cluster * c,Cluster * c1,Cluster * c2,int Teinte,Table_occure
limit=(c->occurences)/2;
cumul=0;
if (Teinte==0)
if (hue==0)
{
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;
}
else
if (Teinte==1)
if (hue==1)
{
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_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);

View File

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

View File

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

Binary file not shown.