]> granicus.if.org Git - libass/commitdiff
Fix blur scaling
authorwm4 <wm4@nowhere>
Tue, 18 Jun 2013 00:14:14 +0000 (02:14 +0200)
committerwm4 <wm4@nowhere>
Sat, 22 Jun 2013 17:07:58 +0000 (19:07 +0200)
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

index 67ecb9cbdbbb3e8cb295de530bae4ab1a3e869e2..1923b3afc6e78c3eb0c6d2e2ab9203db01a27ef2 100644 (file)
@@ -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);