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) {
|
||||
if (!new_frame) {
|
||||
if (!new_frame || engine_->state() == Engine::Paused) {
|
||||
p.drawPixmap(0, 0, canvas_);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#define ANALYZERS_SONOGRAM_H_
|
||||
|
||||
#include "analyzerbase.h"
|
||||
#include "engines/enginebase.h"
|
||||
|
||||
class Sonogram : public Analyzer::Base {
|
||||
Q_OBJECT
|
||||
|
|
Loading…
Reference in New Issue