no sure if 'rewind' is a standard - use fseek instead
This commit is contained in:
parent
4acba303a5
commit
1c25c34dec
1 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ bool freetype_engine::register_font_impl(std::string const& file_name, FT_Librar
|
|||
memset(&streamRec, 0, sizeof(streamRec));
|
||||
fseek(file, 0, SEEK_END);
|
||||
std::size_t file_size = ftell(file);
|
||||
rewind(file);
|
||||
fseek(file, 0, SEEK_SET);
|
||||
streamRec.base = 0;
|
||||
streamRec.pos = 0;
|
||||
streamRec.size = file_size;
|
||||
|
|
Loading…
Add table
Reference in a new issue