From: Max Kellermann Date: Sat, 3 Oct 2009 19:45:38 +0000 (+0200) Subject: screen_play: make the scroll_stat variable global X-Git-Tag: release-0.16~182 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70f568d5906615356d89030ee25e37f2fb62a76f;p=ncmpc.git screen_play: make the scroll_stat variable global --- diff --git a/src/screen_play.c b/src/screen_play.c index 96c2956..0abee2e 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -56,6 +56,9 @@ typedef struct struct mpdclient *c; } completion_callback_data_t; +#ifndef NCMPC_MINI +static struct hscroll hscroll; +#endif static bool must_scroll; #endif @@ -120,9 +123,6 @@ static const char * list_callback(unsigned idx, bool *highlight, char **second_column, G_GNUC_UNUSED void *data) { static char songname[MAX_SONG_LENGTH]; -#ifndef NCMPC_MINI - static struct hscroll hscroll; -#endif struct mpd_song *song; if (playlist == NULL || idx >= playlist_length(playlist))