Merge pull request #4948 from TheUbuntuGuy/sonogram
Sonogram should stop scrolling when paused
This commit is contained in:
commit
c2fd1e1a7b
|
@ -55,7 +55,7 @@ void Sonogram::psychedelicModeChanged(bool enabled) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sonogram::analyze(QPainter& p, const Scope& s, bool new_frame) {
|
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_);
|
p.drawPixmap(0, 0, canvas_);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#define ANALYZERS_SONOGRAM_H_
|
#define ANALYZERS_SONOGRAM_H_
|
||||||
|
|
||||||
#include "analyzerbase.h"
|
#include "analyzerbase.h"
|
||||||
|
#include "engines/enginebase.h"
|
||||||
|
|
||||||
class Sonogram : public Analyzer::Base {
|
class Sonogram : public Analyzer::Base {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
Loading…
Reference in New Issue