Use werase() instead of wclear(). This seems to fix up the funky redraw issues when using Terminal.app and using musikbox over ssh.

This commit is contained in:
Casey Langen 2016-05-29 18:32:57 -07:00
parent 7b4885995b
commit e4eb083aca
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ bool tostr(T& t, const std::string& s) {
inline static void redrawContents(IWindow &window, const std::string& text) {
WINDOW* c = window.GetContent();
wclear(c);
werase(c);
wprintw(c, text.c_str());
window.Repaint();
}

View File

@ -78,7 +78,7 @@ void ScrollAdapterBase::DrawPage(WINDOW* window, size_t index, ScrollPosition *r
result->logicalIndex = 0;
}
wclear(window);
werase(window);
if (this->height == 0 || this->width == 0 || this->GetEntryCount() == 0) {
return;
@ -138,4 +138,4 @@ void ScrollAdapterBase::DrawPage(WINDOW* window, size_t index, ScrollPosition *r
result->totalEntries = GetEntryCount();
result->logicalIndex = index;
}
}
}

View File

@ -379,7 +379,7 @@ IWindow* Window::GetParent() const {
}
void Window::Clear() {
wclear(this->content);
werase(this->content);
}
void Window::Repaint() {