diff options
author | Dr.Smile <vabnick@gmail.com> | 2017-09-17 03:00:34 +0300 |
---|---|---|
committer | Dr.Smile <vabnick@gmail.com> | 2017-09-17 04:07:20 +0300 |
commit | f159a8cf55c8b3f2193ab20159a255310c7c5ca9 (patch) | |
tree | 53da5b52088cae27897b3cb6893ef65630aea892 /libass/ass_cache.h | |
parent | 218ee0b2ab23e3f127b77579c57e9097a5ac6056 (diff) | |
download | libass-f159a8cf55c8b3f2193ab20159a255310c7c5ca9.tar.bz2 libass-f159a8cf55c8b3f2193ab20159a255310c7c5ca9.tar.xz |
Replace FreeType types with libass native types
FT_Vector and FT_BBox types are based on FT_Pos, which is alias of long.
FreeType treats it as 32-bit integer, but on some platforms long can be
64-bit. That leads to wasted memory and suboptimal performance.
Diffstat (limited to 'libass/ass_cache.h')
-rw-r--r-- | libass/ass_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_cache.h b/libass/ass_cache.h index 03e58c7..278eae4 100644 --- a/libass/ass_cache.h +++ b/libass/ass_cache.h @@ -45,8 +45,8 @@ typedef struct { bool valid; ASS_Outline outline; ASS_Outline border[2]; - FT_BBox bbox_scaled; // bbox after scaling, but before rotation - FT_Vector advance; // 26.6, advance distance to the next outline in line + ASS_Rect bbox_scaled; // bbox after scaling, but before rotation + ASS_Vector advance; // 26.6, advance distance to the next outline in line int asc, desc; // ascender/descender } OutlineHashValue; |