[MPlayer-cvslog] CVS: main mplayer.c,1.894,1.895

Oded Shimon CVS syncmail at mplayerhq.hu
Sun Dec 25 19:26:37 CET 2005


CVS change done by Oded Shimon CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv12747

Modified Files:
	mplayer.c 
Log Message:
Use termcap "erase to end of line" character code instead of using spaces
to end of screen.


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.894
retrieving revision 1.895
diff -u -r1.894 -r1.895
--- mplayer.c	7 Dec 2005 05:12:07 -0000	1.894
+++ mplayer.c	25 Dec 2005 18:26:35 -0000	1.895
@@ -962,9 +962,8 @@
     saddf(line, &pos, width, "%4.2fx ", playback_speed);
 
   // end
-  memset(&line[pos], ' ', width - pos);
-  line[width] = 0;
-  mp_msg(MSGT_AVSYNC, MSGL_STATUS, "%s\r", line);
+  line[pos] = 0;
+  mp_msg(MSGT_AVSYNC, MSGL_STATUS, "%s%s\r", line, erase_to_end_of_line);
   free(line);
 }
 




More information about the MPlayer-cvslog mailing list