fix visualizer

This commit is contained in:
Andrzej Rybczak
2009-10-25 23:24:12 +01:00
parent b947575528
commit dd866e9337
4 changed files with 19 additions and 2 deletions

View File

@@ -400,7 +400,7 @@ void Window::ReadKey(int &read_key) const
FD_SET(it->first, &fdset);
}
if (select(fd_max+1, &fdset, 0, 0, &timeout) > 0)
if (select(fd_max+1, &fdset, 0, 0, itsWindowTimeout < 0 ? 0 : &timeout) > 0)
{
# if !defined(USE_PDCURSES)
read_key = FD_ISSET(STDIN_FILENO, &fdset) ? wgetch(itsWindow) : ERR;
@@ -748,6 +748,11 @@ Border Window::GetBorder() const
return itsBorder;
}
int Window::GetTimeout() const
{
return itsWindowTimeout;
}
void Window::Scroll(Where where)
{
idlok(itsWindow, 1);