From 20e0278ffcc94c110fd749a9c804168c49738025 Mon Sep 17 00:00:00 2001 From: greg Date: Thu, 18 Jun 2009 18:20:09 +0200 Subject: [PATCH] Replace manual fixed-point conversion Replace a manual fixed-point conversion to d16 by conversion function. --- libass/ass_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index 33d059b..0ad0d18 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1678,8 +1678,8 @@ get_outline_glyph(ass_renderer_t *render_priv, int symbol, key.font = render_priv->state.font; key.size = render_priv->state.font_size; key.ch = symbol; - key.scale_x = (render_priv->state.scale_x * 0xFFFF); - key.scale_y = (render_priv->state.scale_y * 0xFFFF); + key.scale_x = double_to_d16(render_priv->state.scale_x); + key.scale_y = double_to_d16(render_priv->state.scale_y); key.advance = *advance; key.bold = render_priv->state.bold; key.italic = render_priv->state.italic; -- 2.40.0