summaryrefslogtreecommitdiff
path: root/src/clock.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/clock.cpp
parentdbca4a80ee696559e426ddb2930d4748449c65d6 (diff)
new feature: alternative user interface
Diffstat (limited to 'src/clock.cpp')
-rw-r--r--src/clock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clock.cpp b/src/clock.cpp
index 0ff43d41..54767b6a 100644
--- a/src/clock.cpp
+++ b/src/clock.cpp
@@ -51,7 +51,7 @@ void Clock::Init()
{
Width = Config.clock_display_seconds ? 60 : 40;
- w = new Window((COLS-Width)/2, (LINES-Height)/2, Width, Height-1, "", Config.main_color, Border(Config.main_color));
+ w = new Window((COLS-Width)/2, (MainHeight-Height)/2+MainStartY, Width, Height-1, "", Config.main_color, Border(Config.main_color));
w->SetTimeout(ncmpcpp_window_timeout);
isInitialized = 1;
}
@@ -60,7 +60,7 @@ void Clock::Resize()
{
if (Width <= size_t(COLS) && Height <= MainHeight)
{
- w->MoveTo((COLS-Width)/2, (LINES-Height)/2);
+ w->MoveTo((COLS-Width)/2, (MainHeight-Height)/2+MainStartY);
if (myScreen == this)
{
if (myPlaylist->hasToBeResized)
@@ -96,9 +96,9 @@ void Clock::SwitchTo()
w->Display();
}
-std::string Clock::Title()
+std::basic_string<my_char_t> Clock::Title()
{
- return "Clock";
+ return U("Clock");
}
void Clock::Update()