summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-04 13:12:13 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-04 13:12:13 +0000
commit984fc3cbd89b36c630548b33a461bee36f96ba35 (patch)
treef025da18c12a823ce1cdc38aa190d2ae58061975 /libvo
parent2758feb917e4df5f6ec3400286bb6b40bc12ec37 (diff)
downloadmpv-984fc3cbd89b36c630548b33a461bee36f96ba35.tar.bz2
mpv-984fc3cbd89b36c630548b33a461bee36f96ba35.tar.xz
cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8769 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/geometry.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/libvo/geometry.c b/libvo/geometry.c
index 7a9b638c7b..f258f1b63e 100644
--- a/libvo/geometry.c
+++ b/libvo/geometry.c
@@ -36,19 +36,19 @@ int geometryFull(int *pwidth, int *pheight, int *xpos, int *ypos, int scrw, int
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);
-
- /* 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(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;
+
+ if(xpos) *xpos = xoff;
+ if(ypos) *ypos = yoff;
+ if(pwidth) *pwidth = width;
+ if(pheight) *pheight = height;
}
return 1;
}