summaryrefslogtreecommitdiff
path: root/src/playlist.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-08-12 02:08:13 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2009-08-12 02:08:13 +0200
commit101f01941dbae6f7086623b40d90785b6ae2c024 (patch)
tree5bfb60febbae0b1f4dc61475b99e8d71516308f1 /src/playlist.cpp
parentdbca4a80ee696559e426ddb2930d4748449c65d6 (diff)
new feature: alternative user interface
Diffstat (limited to 'src/playlist.cpp')
-rw-r--r--src/playlist.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/playlist.cpp b/src/playlist.cpp
index 5194e7fc..953d71d4 100644
--- a/src/playlist.cpp
+++ b/src/playlist.cpp
@@ -105,6 +105,7 @@ void Playlist::SwitchTo()
void Playlist::Resize()
{
w->Resize(COLS, MainHeight);
+ w->MoveTo(0, MainStartY);
w->SetTitle(Config.columns_in_playlist ? Display::Columns() : "");
SortDialogHeight = std::min(int(MainHeight-2), 18);
if (MainHeight > 6)
@@ -113,12 +114,12 @@ void Playlist::Resize()
hasToBeResized = 0;
}
-std::string Playlist::Title()
+std::basic_string<my_char_t> Playlist::Title()
{
- std::string result = "Playlist ";
+ std::basic_string<my_char_t> result = U("Playlist ");
if (ReloadTotalLength || ReloadRemaining)
itsBufferedStats = TotalLength();
- result += TO_STRING(Scroller(itsBufferedStats, w->GetWidth()-result.length()-VolumeState.length(), itsScrollBegin));
+ result += Scroller(itsBufferedStats, w->GetWidth()-result.length()-(Config.new_design ? 2 : VolumeState.length()), itsScrollBegin);
return result;
}