mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 13:48:38 -05:00
Unused timer caused random startup crash on windows?
This commit is contained in:
parent
1e970f4373
commit
b9ead19981
@ -27,7 +27,7 @@ wxEND_EVENT_TABLE()
|
||||
|
||||
SpectrumCanvas::SpectrumCanvas(wxWindow *parent, int *attribList) :
|
||||
wxGLCanvas(parent, wxID_ANY, attribList, wxDefaultPosition, wxDefaultSize,
|
||||
wxFULL_REPAINT_ON_RESIZE), parent(parent), frameTimer(0), fft_size(0), in(NULL), out(NULL), plan(NULL) {
|
||||
wxFULL_REPAINT_ON_RESIZE), parent(parent), fft_size(0), in(NULL), out(NULL), plan(NULL) {
|
||||
|
||||
glContext = new SpectrumContext(this, &wxGetApp().GetContext(this));
|
||||
|
||||
@ -60,8 +60,6 @@ void SpectrumCanvas::Setup(int fft_size_in) {
|
||||
|
||||
fft_ceil_ma = fft_ceil_maa = 100.0;
|
||||
fft_floor_ma = fft_floor_maa = 0.0;
|
||||
|
||||
timer.start();
|
||||
}
|
||||
|
||||
SpectrumCanvas::~SpectrumCanvas() {
|
||||
|
@ -46,8 +46,6 @@ private:
|
||||
std::vector<float> fft_result_maa;
|
||||
|
||||
SpectrumContext *glContext;
|
||||
Timer timer;
|
||||
float frameTimer;
|
||||
int fft_size;
|
||||
|
||||
MouseTracker mTracker;
|
||||
|
Loading…
Reference in New Issue
Block a user