diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-14 00:54:48 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-14 00:54:48 +0200 |
commit | 1891c1c0503a5ef66e7ef4b57a23d42cd4c2e824 (patch) | |
tree | c1cac6258581ff6e949bcdf581a436c1412cbcd9 /src/visualizer.cpp | |
parent | 7c3f93e211c6748b4fdf4486bd0e88fff38e3454 (diff) |
do not initialize screens lazily as it doesn't make much sense
Diffstat (limited to 'src/visualizer.cpp')
-rw-r--r-- | src/visualizer.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/visualizer.cpp b/src/visualizer.cpp index 397fb77a..5cfaf6ca 100644 --- a/src/visualizer.cpp +++ b/src/visualizer.cpp @@ -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); |