FS#10496: remove function read_image_file_offset, it had a bug and is not used anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22232 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
15ff26d3ba
commit
9e0663c6fe
2 changed files with 0 additions and 18 deletions
|
@ -35,18 +35,3 @@ int read_image_file(const char* filename, struct bitmap *bm, int maxsize,
|
||||||
return scaled_read_bmp_file(filename, bm, maxsize, format, cformat);
|
return scaled_read_bmp_file(filename, bm, maxsize, format, cformat);
|
||||||
}
|
}
|
||||||
|
|
||||||
int read_image_file_offset(int offset, const char* filename, struct bitmap *bm,
|
|
||||||
int maxsize, int format,
|
|
||||||
const struct custom_format *cformat)
|
|
||||||
{
|
|
||||||
int fd = rb->open(filename, O_RDONLY);
|
|
||||||
if (fd < 0)
|
|
||||||
return fd;
|
|
||||||
if (offset != rb->lseek(fd, offset, SEEK_SET))
|
|
||||||
return -1;
|
|
||||||
int namelen = rb->strlen(filename);
|
|
||||||
if (rb->strcmp(filename + namelen - 4, ".bmp"))
|
|
||||||
return read_jpeg_fd(fd, bm, maxsize, format, cformat);
|
|
||||||
else
|
|
||||||
return scaled_read_bmp_fd(fd, bm, maxsize, format, cformat);
|
|
||||||
}
|
|
||||||
|
|
|
@ -27,8 +27,5 @@
|
||||||
|
|
||||||
int read_image_file(const char* filename, struct bitmap *bm, int maxsize,
|
int read_image_file(const char* filename, struct bitmap *bm, int maxsize,
|
||||||
int format, const struct custom_format *cformat);
|
int format, const struct custom_format *cformat);
|
||||||
int read_image_file_offset(int offset, const char* filename, struct bitmap *bm,
|
|
||||||
int maxsize, int format,
|
|
||||||
const struct custom_format *cformat);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue