summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache_template.h
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2017-01-31 00:11:49 +0200
committerOleg Oshmyan <chortos@inbox.lv>2017-01-31 02:13:30 +0200
commitcb985b51683dcbff5671cf9abc65b1b0825b2e75 (patch)
treeb230f7b01929fb42354e56078289e0c3521f8165 /libass/ass_cache_template.h
parentd4bd51a0b1e7192773af328213b51b19931602db (diff)
downloadlibass-cb985b51683dcbff5671cf9abc65b1b0825b2e75.tar.bz2
libass-cb985b51683dcbff5671cf9abc65b1b0825b2e75.tar.xz
Reduce precision of border width in outline cache keys
The value used to generate outline cache values is 26.6, so there is no point in storing the more precise 16.16 in the cache key. Indeed, this can only reduce the efficiency of the cache and provide an extra opportunity for overflow.
Diffstat (limited to 'libass/ass_cache_template.h')
-rw-r--r--libass/ass_cache_template.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_cache_template.h b/libass/ass_cache_template.h
index 834dafe..9d81231 100644
--- a/libass/ass_cache_template.h
+++ b/libass/ass_cache_template.h
@@ -90,7 +90,7 @@ START(glyph, glyph_hash_key)
GENERIC(int, italic)
GENERIC(unsigned, scale_x) // 16.16
GENERIC(unsigned, scale_y) // 16.16
- FTVECTOR(outline) // border width, 16.16
+ FTVECTOR(outline) // border width, 26.6
GENERIC(unsigned, flags) // glyph decoration flags
GENERIC(unsigned, border_style)
GENERIC(int, hspacing) // 16.16