diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-27 23:06:34 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-27 23:06:34 +0000 |
commit | 909f7b0c14d6e3e3674a9fde08d2746704b236f0 (patch) | |
tree | 702f4d3db8ee2dbc9ca9bf168a0253870ce674b2 | |
parent | f3ea1ffd7b86ce7143e17e3cc070f4fabcd13d7e (diff) |
Allow shadow without border.
Patch by Grigori G (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28748 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libass/ass_render.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index afd6e8f2fa..6e3bb4034b 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -581,12 +581,9 @@ static void change_border(double border) if (!render_context.font) return; if (border < 0) { - if (render_context.style->BorderStyle == 1) { - if (render_context.style->Outline == 0 && render_context.style->Shadow > 0) - border = 1.; - else - border = render_context.style->Outline; - } else + if (render_context.style->BorderStyle == 1) + border = render_context.style->Outline; + else border = 1.; } render_context.border = border; |