pi1 and paletized pcx loading works. Saving untested, truecolor pcx still broken (but does not crash and preview seems ok ?!)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@109 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -3476,7 +3476,7 @@ void Load_PCX(void)
|
||||
long Position;
|
||||
long Taille_image;
|
||||
byte * Buffer;
|
||||
struct stat* Informations_Fichier =NULL;
|
||||
struct stat Informations_Fichier;
|
||||
|
||||
|
||||
Nom_fichier_complet(Nom_du_fichier,0);
|
||||
@@ -3485,8 +3485,8 @@ void Load_PCX(void)
|
||||
|
||||
if ((Fichier=open(Nom_du_fichier,O_RDONLY))!=-1)
|
||||
{
|
||||
stat(Nom_du_fichier,Informations_Fichier);
|
||||
Taille_du_fichier=Informations_Fichier->st_size;
|
||||
stat(Nom_du_fichier,&Informations_Fichier);
|
||||
Taille_du_fichier=Informations_Fichier.st_size;
|
||||
|
||||
if (read(Fichier,&Header,sizeof(struct PCX_Header))==sizeof(struct PCX_Header))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user