diff options
author | wm4 <wm4@nowhere> | 2014-08-21 22:13:10 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-21 22:45:58 +0200 |
commit | 5890e59dbc90e6ed1ae9ccec173006655895918e (patch) | |
tree | 86c0c880e40ce1726ba93d9fd2ac896742f7341b /player/osd.c | |
parent | 070c54dff4afe890a7e2a916698d9910b5aa0662 (diff) | |
download | mpv-5890e59dbc90e6ed1ae9ccec173006655895918e.tar.bz2 mpv-5890e59dbc90e6ed1ae9ccec173006655895918e.tar.xz |
terminal: some cleanups
In particular, remove all the stupid debug printfs from the win code.
Diffstat (limited to 'player/osd.c')
-rw-r--r-- | player/osd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/player/osd.c b/player/osd.c index e3fe9e1c9b..b7fb841485 100644 --- a/player/osd.c +++ b/player/osd.c @@ -238,8 +238,9 @@ static void print_status(struct MPContext *mpctx) if (opts->term_osd_bar) { saddf(&line, "\n"); - get_screen_size(); - add_term_osd_bar(mpctx, &line, screen_width); + int w = 80, h = 24; + terminal_get_size(&w, &h); + add_term_osd_bar(mpctx, &line, w); } // end |