diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-03 15:34:07 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-03 15:34:07 +0200 |
commit | af2cdca3d0bd2966e937519aa015fcc1ab58c723 (patch) | |
tree | 8147b1adb282de85a1ed13a919cb1ee2b1843822 /src/server_info.cpp | |
parent | 6f918091d99bdb3759017413c9efeb17b4dc3927 (diff) |
change naming conventions in NC namespace
Diffstat (limited to 'src/server_info.cpp')
-rw-r--r-- | src/server_info.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server_info.cpp b/src/server_info.cpp index 3b581ba9..df93ad11 100644 --- a/src/server_info.cpp +++ b/src/server_info.cpp @@ -67,7 +67,7 @@ void ServerInfo::SwitchTo() Resize(); myScreen = this; - w->Window::Clear(); + //w->Window::clear(); } void ServerInfo::Resize() @@ -75,8 +75,8 @@ void ServerInfo::Resize() SetDimensions(); if (itsHeight < 5) // screen too low to display this window return myOldScreen->SwitchTo(); - w->Resize(itsWidth, itsHeight); - w->MoveTo((COLS-itsWidth)/2, (MainHeight-itsHeight)/2+MainStartY); + w->resize(itsWidth, itsHeight); + w->moveTo((COLS-itsWidth)/2, (MainHeight-itsHeight)/2+MainStartY); if (myOldScreen && myOldScreen->hasToBeResized) // resize background window { myOldScreen->Resize(); @@ -98,7 +98,7 @@ void ServerInfo::Update() gettimeofday(&past, 0); Mpd.UpdateStats(); - w->Clear(); + w->clear(); *w << NC::fmtBold << U("Version: ") << NC::fmtBoldEnd << U("0.") << Mpd.Version() << U(".*\n"); *w << NC::fmtBold << U("Uptime: ") << NC::fmtBoldEnd; @@ -123,8 +123,8 @@ void ServerInfo::Update() for (auto it = itsTagTypes.begin(); it != itsTagTypes.end(); ++it) *w << (it != itsTagTypes.begin() ? U(", ") : U(" ")) << *it; - w->Flush(); - w->Refresh(); + w->flush(); + w->refresh(); } void ServerInfo::SetDimensions() |