Code

keyboard: implement keyboard_unread() without ungetch()
[ncmpc.git] / src / screen_queue.c
index 0d08bbcb63ce67f3eb8a5dec83681fbc1b74a77a..d3624d1f544a61e446f2a6344e1622a8e8e11e83 100644 (file)
@@ -1,5 +1,5 @@
 /* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
  * Project homepage: http://musicpd.org
  *
  * This program is free software; you can redistribute it and/or modify
@@ -504,7 +504,7 @@ screen_queue_title(char *str, size_t size)
 static void
 screen_queue_paint_callback(WINDOW *w, unsigned i,
                            unsigned y, unsigned width,
-                           bool selected, gcc_unused void *data)
+                           bool selected, gcc_unused const void *data)
 {
        assert(playlist != NULL);
        assert(i < playlist_length(playlist));
@@ -519,7 +519,7 @@ screen_queue_paint_callback(WINDOW *w, unsigned i,
 
        paint_song_row(w, y, width, selected,
                       (int)mpd_song_get_id(song) == current_song_id,
-                      song, row_hscroll);
+                      song, row_hscroll, options.list_format);
 }
 
 static void
@@ -644,7 +644,7 @@ screen_queue_cmd(struct mpdclient *c, command_t cmd)
                screen_queue_repaint();
                return true;
        case CMD_LIST_JUMP:
-               screen_jump(lw, screen_queue_lw_callback, NULL, NULL);
+               screen_jump(lw, screen_queue_lw_callback, NULL, NULL, NULL);
                screen_queue_save_selection();
                screen_queue_repaint();
                return true;