changeset 8768:44b7d4c7e61c

cosmetics
author attila
date Sat, 04 Jan 2003 13:12:13 +0000
parents e497d7e42d8a
children 7b137b8b3c98
files libvo/geometry.c
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/geometry.c	Sat Jan 04 13:11:18 2003 +0000
+++ b/libvo/geometry.c	Sat Jan 04 13:12:13 2003 +0000
@@ -36,19 +36,19 @@
 		   sscanf(vo_geometry, "%i%%", &xper) != 1)
 			return geometry_error();
 
-	if(xper >= 0 && xper <= 100) xoff = (scrw - vidw) * ((float)xper / 100.0);
-	if(yper >= 0 && yper <= 100) yoff = (scrh - vidh) * ((float)yper / 100.0);
+		if(xper >= 0 && xper <= 100) xoff = (scrw - vidw) * ((float)xper / 100.0);
+		if(yper >= 0 && yper <= 100) yoff = (scrh - vidh) * ((float)yper / 100.0);
 
-	/* FIXME: better checking of bounds... */
-	if(width < 0 || width > scrw) width = vidw;
-	if(height < 0 || height > scrh) height = vidh;
-	if(xoff < 0 || xoff + vidw > scrw) xoff = 0;
-	if(yoff < 0 || yoff + vidh > scrh) yoff = 0;
+		/* FIXME: better checking of bounds... */
+		if(width < 0 || width > scrw) width = vidw;
+		if(height < 0 || height > scrh) height = vidh;
+		if(xoff < 0 || xoff + vidw > scrw) xoff = 0;
+		if(yoff < 0 || yoff + vidh > scrh) yoff = 0;
 
-	if(xpos) *xpos = xoff;
-	if(ypos) *ypos = yoff;
-	if(pwidth) *pwidth = width;
-	if(pheight) *pheight = height;
+		if(xpos) *xpos = xoff;
+		if(ypos) *ypos = yoff;
+		if(pwidth) *pwidth = width;
+		if(pheight) *pheight = height;
         }
 	return 1;
 }