aboutsummaryrefslogtreecommitdiff
path: root/visualization
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-11-11 19:33:20 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-11-11 19:39:19 +0800
commitc597d09df05e4a6e1b3832a0f26ad21ce4c5b8cb (patch)
treef398b8f2e3445e34cd852800c970bb033539b402 /visualization
parent524aeee63007fcc40902f807475b49c814f46213 (diff)
downloadQMidiPlayer-c597d09df05e4a6e1b3832a0f26ad21ce4c5b8cb.tar.xz
Fix stupid divide by zero crash.
Diffstat (limited to 'visualization')
-rw-r--r--visualization/qmpvisualization.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/visualization/qmpvisualization.cpp b/visualization/qmpvisualization.cpp
index 0f73b8a..763ab4f 100644
--- a/visualization/qmpvisualization.cpp
+++ b/visualization/qmpvisualization.cpp
@@ -1101,6 +1101,9 @@ void qmpVisualization::init()
closeh = new CloseHandler(this);
rendererTh = nullptr;
playing = false;
+ cts = 0x0402;
+ cks = 0;
+ ctp = 500000;
memset(rpnid, 0xFF, sizeof(rpnid));
memset(rpnval, 0xFF, sizeof(rpnval));
memset(spectra, 0, sizeof(spectra));