Merge pull request #4948 from TheUbuntuGuy/sonogram

Sonogram should stop scrolling when paused
This commit is contained in:
John Maguire 2015-07-12 16:25:16 +01:00
commit c2fd1e1a7b
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