figure out real file format

main
n0emis 4 years ago
parent ea449e9970
commit 2bf3f667ce
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -33,7 +33,11 @@ load2(ImlibImage * im, int load_data)
if (!(real_ext = strndup(q, p - q - 1)))
return 0;
loader = __imlib_FindBestLoaderForFormat("jpg", 0);
char source[500];
strcpy(source, im->real_file);
source[strlen(source)-4] = '\0';
loader = __imlib_FindBestLoaderForFile(source, 0);
if (!loader)
return 0;

Loading…
Cancel
Save