From ef040e296e46fcc7620edaf89ffac05e065ec3e3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 14:31:00 +0200 Subject: 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. --- src/screen_lyrics.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/screen_lyrics.c') 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); -- cgit v1.2.3