changeset 31252:eff096c1ea0a

Add support for -geometry x syntax since the documentation claims it is supported.
author reimar
date Sat, 05 Jun 2010 06:28:58 +0000
parents ff83a7122367
children b470391059f3
files libvo/geometry.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/geometry.c	Fri Jun 04 18:46:22 2010 +0000
+++ b/libvo/geometry.c	Sat Jun 05 06:28:58 2010 +0000
@@ -40,7 +40,7 @@
             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 @@
                 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) {