Code

screen_song: support CMD_SCREEN_LYRICS
authorMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 23:07:02 +0000 (00:07 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 23:07:02 +0000 (00:07 +0100)
Show the lyrics of the song currently being displayed.

src/screen_song.c

index 202025ee81d357899d7c589c6bebd2c6f28d49cb..bda200ad74f9f645f98fbf1a265094c141132d55 100644 (file)
@@ -128,6 +128,16 @@ screen_song_cmd(mpdclient_t *c, command_t cmd)
 
                return false;
 
+#ifdef ENABLE_LYRICS_SCREEN
+       case CMD_SCREEN_LYRICS:
+               if (current.song != NULL) {
+                       screen_lyrics_switch(c, current.song);
+                       return true;
+               }
+
+               return false;
+#endif
+
        default:
                break;
        }