forked from old/legacy-imlib2
Revert "GIF, TIFF, WEBP loaders: Fix loading if filename does not have usual suffix"
This reverts commit 43f82f3bc8
.
This commit is contained in:
parent
43f82f3bc8
commit
b71221ce76
|
@ -18,7 +18,6 @@ load2(ImlibImage * im, int load_data)
|
|||
DATA32 colormap[256];
|
||||
|
||||
fd = dup(fileno(im->fp));
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
|
||||
#if GIFLIB_MAJOR >= 5
|
||||
gif = DGifOpenFileHandle(fd, NULL);
|
||||
|
|
|
@ -247,7 +247,6 @@ load2(ImlibImage * im, int load_data)
|
|||
rgba_image.image = NULL;
|
||||
|
||||
fd = fileno(im->fp);
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
if (read(fd, &magic_number, sizeof(uint16_t)) != sizeof(uint16_t))
|
||||
goto quit;
|
||||
|
||||
|
|
|
@ -53,8 +53,6 @@ load2(ImlibImage * im, int load_data)
|
|||
if (!encoded_data)
|
||||
goto quit;
|
||||
|
||||
lseek(fd, 0, SEEK_SET);
|
||||
|
||||
/* Check signature */
|
||||
size = 12;
|
||||
if (read(fd, encoded_data, size) != (long)size)
|
||||
|
|
Loading…
Reference in New Issue