Mercurial > hg > dmlib
changeset 1203:2b48b7fe95bc
Use dmfreset() instead of dmfseek() to seek to stream start.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Mar 2015 16:57:27 +0200 |
parents | 9c1cde761c51 |
children | 0d173edbabe2 |
files | src/dmimage.c tools/fontconv.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dmimage.c Thu Mar 05 16:57:03 2015 +0200 +++ b/src/dmimage.c Thu Mar 05 16:57:27 2015 +0200 @@ -124,7 +124,7 @@ int width = 0, height = 0, comp = 0; Uint8 *data; - dmfseek(file, 0, SEEK_SET); + dmfreset(file); data = stbi_load_from_callbacks(&dmSTBICallbacks, file, &width, &height, &comp, 0); if (data == NULL)