mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-04 22:27:49 -04: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) :
|
SpectrumCanvas::SpectrumCanvas(wxWindow *parent, int *attribList) :
|
||||||
wxGLCanvas(parent, wxID_ANY, attribList, wxDefaultPosition, wxDefaultSize,
|
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));
|
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_ceil_ma = fft_ceil_maa = 100.0;
|
||||||
fft_floor_ma = fft_floor_maa = 0.0;
|
fft_floor_ma = fft_floor_maa = 0.0;
|
||||||
|
|
||||||
timer.start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SpectrumCanvas::~SpectrumCanvas() {
|
SpectrumCanvas::~SpectrumCanvas() {
|
||||||
|
@ -46,8 +46,6 @@ private:
|
|||||||
std::vector<float> fft_result_maa;
|
std::vector<float> fft_result_maa;
|
||||||
|
|
||||||
SpectrumContext *glContext;
|
SpectrumContext *glContext;
|
||||||
Timer timer;
|
|
||||||
float frameTimer;
|
|
||||||
int fft_size;
|
int fft_size;
|
||||||
|
|
||||||
MouseTracker mTracker;
|
MouseTracker mTracker;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user