actions: remove Action::OrderResize, use ResizeScreen directly
This commit is contained in:
@@ -65,7 +65,6 @@ using Global::myScreen;
|
|||||||
|
|
||||||
bool Action::OriginalStatusbarVisibility;
|
bool Action::OriginalStatusbarVisibility;
|
||||||
bool Action::DesignChanged;
|
bool Action::DesignChanged;
|
||||||
bool Action::OrderResize;
|
|
||||||
bool Action::ExitMainLoop = false;
|
bool Action::ExitMainLoop = false;
|
||||||
|
|
||||||
size_t Action::HeaderHeight;
|
size_t Action::HeaderHeight;
|
||||||
@@ -133,8 +132,6 @@ void Action::ResizeScreen()
|
|||||||
using Global::wHeader;
|
using Global::wHeader;
|
||||||
using Global::wFooter;
|
using Global::wFooter;
|
||||||
|
|
||||||
OrderResize = 0;
|
|
||||||
|
|
||||||
# if defined(USE_PDCURSES)
|
# if defined(USE_PDCURSES)
|
||||||
resize_term(0, 0);
|
resize_term(0, 0);
|
||||||
# else
|
# else
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ struct Action
|
|||||||
|
|
||||||
static bool OriginalStatusbarVisibility;
|
static bool OriginalStatusbarVisibility;
|
||||||
static bool DesignChanged;
|
static bool DesignChanged;
|
||||||
static bool OrderResize;
|
|
||||||
static bool ExitMainLoop;
|
static bool ExitMainLoop;
|
||||||
|
|
||||||
static size_t HeaderHeight;
|
static size_t HeaderHeight;
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ namespace
|
|||||||
}
|
}
|
||||||
else if (signal == SIGWINCH)
|
else if (signal == SIGWINCH)
|
||||||
{
|
{
|
||||||
Action::OrderResize = true;
|
Action::ResizeScreen();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# endif // !WIN32
|
# endif // !WIN32
|
||||||
@@ -235,9 +235,6 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
ShowMessages = true;
|
ShowMessages = true;
|
||||||
|
|
||||||
if (Action::OrderResize)
|
|
||||||
Action::ResizeScreen();
|
|
||||||
|
|
||||||
// header stuff
|
// header stuff
|
||||||
if (((Timer.tv_sec == past.tv_sec && Timer.tv_usec >= past.tv_usec+500000) || Timer.tv_sec > past.tv_sec)
|
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)
|
&& (myScreen == myPlaylist || myScreen == myBrowser || myScreen == myLyrics)
|
||||||
|
|||||||
Reference in New Issue
Block a user