changeset 7980:1f050e96ddee

10L
author albeu
date Wed, 30 Oct 2002 17:51:13 +0000
parents 64f468cbedcd
children 3fac0256a842
files libvo/vo_fbdev.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Wed Oct 30 17:48:39 2002 +0000
+++ b/libvo/vo_fbdev.c	Wed Oct 30 17:51:13 2002 +0000
@@ -834,8 +834,10 @@
 
 	if (verbose > 1)
 		printf(FBDEV "vt_set_textarea(%d,%d): %d,%d\n", u, l, urow, lrow);
-	fprintf(vt_fp, "\33[%d;%dr\33[%d;%dH", urow, lrow, lrow, 0);
-	fflush(vt_fp);
+	if(vt_fp) {
+	  fprintf(vt_fp, "\33[%d;%dr\33[%d;%dH", urow, lrow, lrow, 0);
+	  fflush(vt_fp);
+	}
 }
 
 static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width,