changeset 15272:db06e2acdf3d

Make it possible to use a ggi device string that contains a ',' by writing a '.' instead.
author reimar
date Wed, 27 Apr 2005 12:15:37 +0000
parents 15504d659558
children b0076e56ac5f
files libvo/vo_ggi.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_ggi.c	Tue Apr 26 19:24:28 2005 +0000
+++ b/libvo/vo_ggi.c	Wed Apr 27 12:15:37 2005 +0000
@@ -381,7 +381,15 @@
     }
 
     if ((char *)arg)
+    {
+	int i = 0;
 	ggi_conf.driver = strdup(arg);
+	while (ggi_conf.driver[i]) {
+	  if (ggi_conf.driver[i] == '.')
+	    ggi_conf.driver[i] = ',';
+	  i++;
+	}
+    }
     else
 	ggi_conf.driver = NULL;