# HG changeset patch # User attila # Date 1041685933 0 # Node ID 44b7d4c7e61c4c414b10c2acb325b199af80d29c # Parent e497d7e42d8ab740e6ef8bf4a48c788110f04737 cosmetics diff -r e497d7e42d8a -r 44b7d4c7e61c libvo/geometry.c --- 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; }