unsigned int bmoffset, bmsize;
} chosen = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
- f = eina_file_open(file, EINA_FILE_SEQUENTIAL);
+ f = eina_file_open(file, EINA_FALSE);
if (!f)
{
*error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
fsize = eina_file_size_get(f);
if (fsize < (6 + 16 + 40)) goto close_file;
+ map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL);
+ if (!map) goto close_file;
+
// key:
// NULL == highest res
// biggest == highest res
unsigned int bmoffset, bmsize;
} chosen = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
- f = eina_file_open(file, EINA_FILE_SEQUENTIAL);
+ f = eina_file_open(file, EINA_FALSE);
if (!f)
{
*error = EVAS_LOAD_ERROR_DOES_NOT_EXIST;
fsize = eina_file_size_get(f);
if (fsize < (6 + 16 + 40)) goto close_file;
+ map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL);
+ if (!map) goto close_file;
+
// key:
// NULL == highest res
// biggest == highest res