Sonogram should stop scrolling when paused

Fixes #755
This commit is contained in:
Mark Furneaux 2015-07-11 23:12:44 -04:00
parent e94ec8d119
commit f68d983ddc
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void Sonogram::psychedelicModeChanged(bool enabled) {
}
void Sonogram::analyze(QPainter& p, const Scope& s, bool new_frame) {
if (!new_frame) {
if (!new_frame || engine_->state() == Engine::Paused) {
p.drawPixmap(0, 0, canvas_);
return;
}

View File

@ -26,6 +26,7 @@
#define ANALYZERS_SONOGRAM_H_
#include "analyzerbase.h"
#include "engines/enginebase.h"
class Sonogram : public Analyzer::Base {
Q_OBJECT