From b992975a3543e7d539e6a3b568dd6b1f198e9561 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 18 Jun 2013 02:14:14 +0200 Subject: [PATCH] Fix blur scaling Commit 0e1702ad7a6a827d "Add ass_set_storage_size and fix related scaling issues" attempted to fix blur scaling. This breaks blur scaling for players which don't call ass_set_storage_size(). This commit reverts the default behavior to the old behavior. The behavior when ass_set_storage_size() is called should be unchanged. --- libass/ass_render.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libass/ass_render.c b/libass/ass_render.c index 67ecb9c..1923b3a 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -2257,6 +2257,8 @@ ass_start_frame(ASS_Renderer *render_priv, ASS_Track *track, render_priv->track->PlayResY; else render_priv->border_scale = render_priv->blur_scale; + if (!settings_priv->storage_height) + render_priv->blur_scale = render_priv->border_scale; render_priv->border_scale *= settings_priv->font_size_coeff; ass_shaper_set_kerning(render_priv->shaper, track->Kerning); -- 2.40.0