From cb985b51683dcbff5671cf9abc65b1b0825b2e75 Mon Sep 17 00:00:00 2001 From: Oleg Oshmyan Date: Tue, 31 Jan 2017 00:11:49 +0200 Subject: 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. --- libass/ass_cache_template.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass/ass_cache_template.h') 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 -- cgit v1.2.3