Handling for these formats were broken due to endianness problems on PPC: pkm img bmp gif

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@268 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Franck Charlet
2008-10-16 00:29:04 +00:00
parent c395578be8
commit 6a778031fe
11 changed files with 135 additions and 470 deletions

15
graph.c
View File

@@ -1,5 +1,6 @@
/* Grafx2 - The Ultimate 256-color bitmap paint program
Copyright 2008 Franck Charlet
Copyright 2007 Adrien Destugues
Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
@@ -504,14 +505,14 @@ unsigned long Memoire_libre(void)
#ifdef __linux__
#ifdef __macosx__
int mib[2];
int maxmem;
size_t len;
int maxmem;
size_t len;
mib[0] = CTL_HW;
mib[1] = HW_USERMEM;
len = sizeof(maxmem);
sysctl(mib,2,&maxmem,&len,NULL,0);
return maxmem;
mib[0] = CTL_HW;
mib[1] = HW_USERMEM;
len = sizeof(maxmem);
sysctl(mib,2,&maxmem,&len,NULL,0);
return maxmem;
#else
struct sysinfo info;
sysinfo(&info);