mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +01:00
[VARC] Convert a division to mult
This commit is contained in:
1 parent
d6039e579b
commit
5f2df0a3b2
1 file changed
+1
-1
@@ -297,7 +297,7 @@ VarComponent::get_path_at (const hb_varc_context_t &c,
|
||||
// Divide them by their divisors
|
||||
#define PROCESS_TRANSFORM_COMPONENT(shift, type, flag, name) \
|
||||
if (shift && (flags & (unsigned) flags_t::flag)) \
|
||||
transform.name /= (1 << shift);
|
||||
transform.name *= 1.f / (1 << shift);
|
||||
PROCESS_TRANSFORM_COMPONENTS;
|
||||
#undef PROCESS_TRANSFORM_COMPONENT
|
||||
|
||||
|
||||
Reference in new issue
Block a user