diff --git a/src/title_bar.c b/src/title_bar.c
index 4d232566565a3e0b75f71f9d109c6cca187573c9..9b2c12a5456ca36e35a56a4778e7c4025f1c48e1 100644 (file)
--- a/src/title_bar.c
+++ b/src/title_bar.c
/* 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
const struct mpd_status *status)
{
WINDOW *w = p->window.w;
- int volume;
- char flags[5];
- char buf[32];
assert(p != NULL);
#endif
}
- volume = get_volume(status);
+ int volume = get_volume(status);
+ char buf[32];
if (volume < 0)
g_snprintf(buf, 32, _("Volume n/a"));
else
colors_use(w, COLOR_TITLE);
mvwaddstr(w, 0, p->window.cols - utf8_width(buf), buf);
+ char flags[5];
flags[0] = 0;
if (status != NULL) {
if (mpd_status_get_repeat(status))
if (flags[0]) {
wmove(w, 1, p->window.cols - strlen(flags) - 3);
waddch(w, '[');
- colors_use(w, COLOR_LINE_BOLD);
+ colors_use(w, COLOR_LINE_FLAGS);
waddstr(w, flags);
colors_use(w, COLOR_LINE);
waddch(w, ']');