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

@@ -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++;
}