actions: remove Action::OrderResize, use ResizeScreen directly

master
Andrzej Rybczak 14 years ago
parent 8f065e2da3
commit 983c79ff61
  1. 3
      src/actions.cpp
  2. 1
      src/actions.h
  3. 5
      src/ncmpcpp.cpp

@ -65,7 +65,6 @@ using Global::myScreen;
bool Action::OriginalStatusbarVisibility;
bool Action::DesignChanged;
bool Action::OrderResize;
bool Action::ExitMainLoop = false;
size_t Action::HeaderHeight;
@ -133,8 +132,6 @@ void Action::ResizeScreen()
using Global::wHeader;
using Global::wFooter;
OrderResize = 0;
# if defined(USE_PDCURSES)
resize_term(0, 0);
# else

@ -86,7 +86,6 @@ struct Action
static bool OriginalStatusbarVisibility;
static bool DesignChanged;
static bool OrderResize;
static bool ExitMainLoop;
static size_t HeaderHeight;

@ -58,7 +58,7 @@ namespace
}
else if (signal == SIGWINCH)
{
Action::OrderResize = true;
Action::ResizeScreen();
}
}
# endif // !WIN32
@ -235,9 +235,6 @@ int main(int argc, char **argv)
ShowMessages = true;
if (Action::OrderResize)
Action::ResizeScreen();
// header stuff
if (((Timer.tv_sec == past.tv_sec && Timer.tv_usec >= past.tv_usec+500000) || Timer.tv_sec > past.tv_sec)
&& (myScreen == myPlaylist || myScreen == myBrowser || myScreen == myLyrics)

Loading…
Cancel
Save