summaryrefslogtreecommitdiff
path: root/src/display.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-09-06 02:53:36 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-09-06 02:53:36 +0200
commitfc2d31eca203174ef6849d70ceb8787be59cb88d (patch)
treeafb164147114d649a6405d9ae2d977ee8bfceb10 /src/display.cpp
parentca76cf73b47ce0a5785050b354f1988cc64f9713 (diff)
display: fix album separators / now playing prefix in classic mode
Diffstat (limited to 'src/display.cpp')
-rw-r--r--src/display.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/display.cpp b/src/display.cpp
index 89cbf7b7..21b85aac 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -87,7 +87,12 @@ void setProperties(NC::Menu<T> &menu, const MPD::Song &s, HasSongs &screen, bool
separate_albums = true;
}
if (separate_albums)
+ {
menu << NC::fmtUnderline;
+ mvwhline(menu.raw(), menu.getY(), 0, KEY_SPACE, menu.getWidth());
+ }
+ if (is_now_playing)
+ menu << Config.now_playing_prefix;
int song_pos = menu.isFiltered() ? s.getPosition() : drawn_pos;
is_now_playing = static_cast<void *>(&menu) == myPlaylist->Items
@@ -159,9 +164,6 @@ void showSongsInColumns(NC::Menu<T> &menu, const MPD::Song &s, HasSongs &screen)
bool separate_albums, is_now_playing, is_selected, discard_colors;
setProperties(menu, s, screen, separate_albums, is_now_playing, is_selected, discard_colors);
- if (is_now_playing)
- menu << Config.now_playing_prefix;
-
int width;
int y = menu.getY();
int remained_width = menu.getWidth();