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

7
aide.c
View File

@@ -228,7 +228,7 @@ void Bouton_Stats(void)
#ifdef __linux__
struct statfs Informations_Disque;
unsigned long long Taille = 0;
uint64_t Taille = 0;
#else
unsigned __int64 Taille;
ULARGE_INTEGER tailleU;
@@ -277,8 +277,6 @@ void Bouton_Stats(void)
Taille = tailleU.QuadPart;
#endif
if (Taille>=0)
{
if(Taille > (100ULL*1024*1024*1024))
sprintf(Buffer,"%d Gigabytes",(unsigned int)(Taille/(1024*1024*1024)));
else if(Taille > (100*1024*1024))
@@ -288,9 +286,6 @@ void Bouton_Stats(void)
else
sprintf(Buffer,"%d bytes",(unsigned int)Taille);
Print_dans_fenetre(146,51,Buffer,STATS_COULEUR_DONNEES,CM_Noir);
}
else
Print_dans_fenetre(146,51,"* Error *",STATS_COULEUR_DONNEES,CM_Noir);
// Affichage des informations sur l'image
Print_dans_fenetre(10,67,"Picture info.:",STATS_COULEUR_TITRES,CM_Noir);