changeset 22276:9f95f9dcf832

Cosmetics: fix indentation.
author eugeni
date Tue, 20 Feb 2007 17:22:34 +0000
parents e104fa52d218
children de3ca43ae51e
files libass/ass_render.c
diffstat 1 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Tue Feb 20 17:20:21 2007 +0000
+++ b/libass/ass_render.c	Tue Feb 20 17:22:34 2007 +0000
@@ -775,22 +775,22 @@
 	} else if (mystrcmp(&p, "frx")) {
 		double val;
 		if (mystrtod(&p, &val)) {
-		val *= M_PI / 180;
-		render_context.frx = val * pwr + render_context.frx * (1-pwr);
+			val *= M_PI / 180;
+			render_context.frx = val * pwr + render_context.frx * (1-pwr);
 		} else
 			render_context.frx = 0.;
 	} else if (mystrcmp(&p, "fry")) {
 		double val;
 		if (mystrtod(&p, &val)) {
-		val *= M_PI / 180;
-		render_context.fry = val * pwr + render_context.fry * (1-pwr);
+			val *= M_PI / 180;
+			render_context.fry = val * pwr + render_context.fry * (1-pwr);
 		} else
 			render_context.fry = 0.;
 	} else if (mystrcmp(&p, "frz") || mystrcmp(&p, "fr")) {
 		double val;
 		if (mystrtod(&p, &val)) {
-		val *= M_PI / 180;
-		render_context.frz = val * pwr + render_context.frz * (1-pwr);
+			val *= M_PI / 180;
+			render_context.frz = val * pwr + render_context.frz * (1-pwr);
 		} else
 			render_context.frz = M_PI * render_context.style->Angle / 180.;
 	} else if (mystrcmp(&p, "fn")) {
@@ -824,19 +824,19 @@
 	} else if (mystrcmp(&p, "an")) {
 		int val;
 		if (mystrtoi(&p, 10, &val) && val) {
-		int v = (val - 1) / 3; // 0, 1 or 2 for vertical alignment
-		mp_msg(MSGT_ASS, MSGL_DBG2, "an %d\n", val);
-		if (v != 0) v = 3 - v;
-		val = ((val - 1) % 3) + 1; // horizontal alignment
-		val += v*4;
-		mp_msg(MSGT_ASS, MSGL_DBG2, "align %d\n", val);
-		render_context.alignment = val;
+			int v = (val - 1) / 3; // 0, 1 or 2 for vertical alignment
+			mp_msg(MSGT_ASS, MSGL_DBG2, "an %d\n", val);
+			if (v != 0) v = 3 - v;
+			val = ((val - 1) % 3) + 1; // horizontal alignment
+			val += v*4;
+			mp_msg(MSGT_ASS, MSGL_DBG2, "align %d\n", val);
+			render_context.alignment = val;
 		} else
 			render_context.alignment = render_context.style->Alignment;
 	} else if (mystrcmp(&p, "a")) {
 		int val = strtol(p, &p, 10);
 		if (mystrtoi(&p, 10, &val) && val)
-		render_context.alignment = val;
+			render_context.alignment = val;
 		else
 			render_context.alignment = render_context.style->Alignment;
 	} else if (mystrcmp(&p, "pos")) {
@@ -1004,7 +1004,7 @@
 		int i;
 		if (mystrtoi(&p, 10, &i))
 			if (pwr >= .5)
-			render_context.italic = i;
+				render_context.italic = i;
 		else
 			render_context.italic = render_context.style->Italic;
 		update_font();