diff options
author | Max Kellermann <max@duempel.org> | 2008-10-03 14:31:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-03 14:31:00 +0200 |
commit | ef040e296e46fcc7620edaf89ffac05e065ec3e3 (patch) | |
tree | 8836cbeb47208a2f949d6f44a093f795f03f37cb /src/screen_lyrics.c | |
parent | 0b2eee9489a8acef3cdee6f6fa0df6d167c53b8d (diff) | |
download | mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.tar.gz mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.tar.xz mpd-ef040e296e46fcc7620edaf89ffac05e065ec3e3.zip |
screen: export the global variable "screen"
screen_t is a singleton. We do not have to pass it around
everywhere. Export the one global variable.
Diffstat (limited to '')
-rw-r--r-- | src/screen_lyrics.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index be99e6b75..2a8e10b67 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -264,7 +264,7 @@ lyrics_exit(void) } static void -lyrics_open(mpd_unused screen_t *screen, mpdclient_t *c) +lyrics_open(mpdclient_t *c) { if (next_song == NULL) next_song = c->song; @@ -297,7 +297,7 @@ lyrics_paint(void) } static int -lyrics_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) +lyrics_cmd(mpdclient_t *c, command_t cmd) { if (list_window_scroll_cmd(lw, current.lines->len, cmd)) { lyrics_repaint(); @@ -327,8 +327,7 @@ lyrics_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) } lw->selected = lw->start+lw->rows; - if (screen_find(screen, - lw, current.lines->len, + if (screen_find(lw, current.lines->len, cmd, list_callback, NULL)) { /* center the row */ list_window_center(lw, current.lines->len, lw->selected); |