From 70f568d5906615356d89030ee25e37f2fb62a76f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Oct 2009 21:45:38 +0200 Subject: [PATCH] screen_play: make the scroll_stat variable global --- src/screen_play.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) -- 2.30.2