1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

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
This commit is contained in:
eugeni 2009-02-27 23:06:34 +00:00
parent f3ea1ffd7b
commit 909f7b0c14

View File

@ -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;