Code

screen_play: make the scroll_stat variable global
authorMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 19:45:38 +0000 (21:45 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 19:45:38 +0000 (21:45 +0200)
src/screen_play.c

index 96c295633b85245a7ce5fda542da0d29d5a979a9..0abee2ee46f96b0be9c352bb43c9b2091e724f56 100644 (file)
@@ -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))