changeset 1576:2dff06ebfbb4

now linux/curses detection works
author folke
date Fri, 17 Aug 2001 14:53:11 +0000
parents 2766b0d3863d
children 440782e33c81
files libvo/vo_aa.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_aa.c	Fri Aug 17 14:31:03 2001 +0000
+++ b/libvo/vo_aa.c	Fri Aug 17 14:53:11 2001 +0000
@@ -216,7 +216,7 @@
     char fname[12];
     int fd, vt, major, minor;
     struct stat sbuf;
-    char * hidis;
+    char * hidis = NULL;
     int i;
 
     switch(format) {
@@ -255,8 +255,11 @@
 	sprintf (fname, "/dev/vcsa%i", vt);
 	fp = fopen (fname, "w+");
 	if (fp==NULL){
-	    fprintf(stderr,"VO: [aa] cannot open %s for writing, so we'll not use linux driver\n", fname);
+	    fprintf(stderr,"VO: [aa] cannot open %s for writing,"
+			"so we'll not use linux driver\n", fname);
     	    aa_recommendlowdisplay("linux");
+    	    aa_recommendhidisplay("curses");
+    	    aa_recommendhidisplay("X11");
 	}else fclose(fp);
     }
     c = aa_autoinit(&aa_defparams);