do not initialize screens lazily as it doesn't make much sense

This commit is contained in:
Andrzej Rybczak
2012-09-14 00:54:48 +02:00
parent 7c3f93e211
commit 1891c1c050
41 changed files with 153 additions and 205 deletions

View File

@@ -40,11 +40,11 @@
using Global::MainStartY;
using Global::MainHeight;
Visualizer *myVisualizer = new Visualizer;
Visualizer *myVisualizer;
const int Visualizer::WindowTimeout = 1000/25; /* 25 fps */
void Visualizer::init()
Visualizer::Visualizer()
{
w = new NC::Window(0, MainStartY, COLS, MainHeight, "", Config.visualizer_color, NC::brNone);
@@ -59,8 +59,6 @@ void Visualizer::init()
# endif // HAVE_FFTW3_H
FindOutputID();
isInitialized = 1;
}
void Visualizer::switchTo()
@@ -71,9 +69,6 @@ void Visualizer::switchTo()
if (myScreen == this)
return;
if (!isInitialized)
init();
if (myLockedScreen)
updateInactiveScreen(this);