Fixed the palette window : color counting works (forgot to initialize the buffer), and correct display of selected colors.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@191 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-10-04 18:14:29 +00:00
parent 9dac1feee7
commit eaa35aa9c7
5 changed files with 7 additions and 9 deletions

View File

@@ -27,6 +27,8 @@ word Palette_Compter_nb_couleurs_utilisees(dword* Tableau)
word Nombre_Couleurs=0;
int i;
for (i=0;i<256;i++) Tableau[i]=0;
//Calcul du nombre de pixels dans l'image
Nombre_De_Pixels=Principal_Hauteur_image*Principal_Largeur_image;