diff options
author | Max Kellermann <max@duempel.org> | 2008-09-25 18:43:50 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-25 18:43:50 +0200 |
commit | 434615a48f315a0655891149efa42dc6b919e722 (patch) | |
tree | e670eb397a888dd2d4748ed5ffbf39a3f969bc07 /src/screen_play.c | |
parent | 0469331df0de18c3f23dd69b677f2f183e38a3b0 (diff) | |
download | mpd-434615a48f315a0655891149efa42dc6b919e722.tar.gz mpd-434615a48f315a0655891149efa42dc6b919e722.tar.xz mpd-434615a48f315a0655891149efa42dc6b919e722.zip |
screen: don't pass screen pointer to method update()
play_update() is the only update() implementation left, and it does
not use the screen pointer. Remove it from the method signature.
Diffstat (limited to '')
-rw-r--r-- | src/screen_play.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index 757ead3a0..8258e18ae 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -366,9 +366,11 @@ play_open(mpd_unused screen_t *screen, mpdclient_t *c) static gboolean install_cb = TRUE; assert(timer_hide_cursor_id == 0); - if (options.hide_cursor > 0) + if (options.hide_cursor > 0) { + lw->flags &= ~LW_HIDE_CURSOR; timer_hide_cursor_id = g_timeout_add(options.hide_cursor * 1000, timer_hide_cursor, c); + } if (install_cb) { mpdclient_install_playlist_callback(c, playlist_changed_callback); @@ -416,7 +418,7 @@ play_paint(mpdclient_t *c) } static void -play_update(mpd_unused screen_t *screen, mpdclient_t *c) +play_update(mpdclient_t *c) { /* center the cursor */ if (options.auto_center) { |