summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-13 16:10:32 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-11-13 16:10:32 +0000
commita989f229c5027119f91e640c8b4d206e76edbee3 (patch)
tree90910abe901f0a13ae38716ce70d1a65def6b20b /mplayer.c
parentd86b87a5b20d6f096be56a2b0296dace7c8e1e32 (diff)
downloadmpv-a989f229c5027119f91e640c8b4d206e76edbee3.tar.bz2
mpv-a989f229c5027119f91e640c8b4d206e76edbee3.tar.xz
fix scrolling status line in windows
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13929 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index b5c446a177..8b91bcd2f6 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -820,6 +820,11 @@ static void print_status(float a_pos, float a_v, float corr)
width = screen_width;
else
width = 80;
+#ifdef WIN32
+ // windows command line is broken (MinGW's rxvt works though, but we
+ // should not depend on that).
+ width--;
+#endif
line = malloc(width + 1); // one additional for terminating null
// Audio time