changeset 28713:e758bf5350ee

Allow shadow without border. Patch by Grigori G (greg chown ath cx).
author eugeni
date Fri, 27 Feb 2009 23:06:34 +0000
parents 108abf7064d3
children aa85da6fb408
files libass/ass_render.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Fri Feb 27 22:23:20 2009 +0000
+++ b/libass/ass_render.c	Fri Feb 27 23:06:34 2009 +0000
@@ -581,12 +581,9 @@
 	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;