diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-05 06:28:58 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-06-05 06:28:58 +0000 |
commit | e22ebfddb1e8c652e1750f36044b53684161301c (patch) | |
tree | 1b177153caf8c0588f70d4d2bf4e0ddaa5388116 /libvo/geometry.c | |
parent | 5bd98b116aa72d6937b18fd66217dfba9d250855 (diff) | |
download | mpv-e22ebfddb1e8c652e1750f36044b53684161301c.tar.bz2 mpv-e22ebfddb1e8c652e1750f36044b53684161301c.tar.xz |
Add support for -geometry x syntax since the documentation claims
it is supported.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31318 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/geometry.c')
-rw-r--r-- | libvo/geometry.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/geometry.c b/libvo/geometry.c index 9d60ada29f..4bc08f811d 100644 --- a/libvo/geometry.c +++ b/libvo/geometry.c @@ -40,7 +40,7 @@ int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh) int width, height, xoff, yoff, xper, yper; int i; int ok = 0; - for (i = 0; !ok && i < 8; i++) { + for (i = 0; !ok && i < 9; i++) { width = height = xoff = yoff = xper = yper = INT_MIN; strcpy(xsign, "+"); strcpy(ysign, "+"); @@ -72,6 +72,9 @@ int geometry(int *xpos, int *ypos, int *widw, int *widh, int scrw, int scrh) case 7: ok = sscanf(vo_geometry, "%i%1[%]%c", &xper, dummy, dummy) == 2; break; + case 8: + ok = sscanf(vo_geometry, "%i%c", &xoff, dummy) == 1; + break; } } if (!ok) { |