mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-11 09:24:50 +01:00
parent
e94ec8d119
commit
f68d983ddc
@ -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
Block a user