git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/eet@8521
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
d = malloc((w * h * 4) + (8 * 4));
if (!d) return NULL;
+
header = (int *)d;
+ memset(d, 0, 32);
+
header[0] = 0xac1dfeed;
header[1] = w;
header[2] = h;
header[3] = alpha;
- header[4] = 0;
+
memcpy(d + 32, data, w * h * 4);
if (words_bigendian)
return NULL;
}
header = (int *)d;
+ memset(d, 0, 32);
+
header[0] = 0xac1dfeed;
header[1] = w;
header[2] = h;
void *data;
int size;
unsigned int *d = NULL;
- int header[8];
data = eet_read(ef, name, &size);
if (!data) return NULL;