diff --git a/src/widget/wspinny.cpp b/src/widget/wspinny.cpp index e16d674aafd..651f5130793 100644 --- a/src/widget/wspinny.cpp +++ b/src/widget/wspinny.cpp @@ -33,13 +33,11 @@ void WSpinny::draw() { p.drawImage(rect(), *m_pMaskImage, m_pMaskImage->rect()); } -#ifdef __VINYLCONTROL__ // Overlay the signal quality drawing if vinyl is active if (shouldDrawVinylQuality()) { // draw the last good image p.drawImage(this->rect(), m_qImage); } -#endif // To rotate the foreground image around the center of the image, // we use the classic trick of translating the coordinate system such that diff --git a/src/widget/wspinnybase.cpp b/src/widget/wspinnybase.cpp index bcb34c05b06..f9db18668fd 100644 --- a/src/widget/wspinnybase.cpp +++ b/src/widget/wspinnybase.cpp @@ -108,7 +108,11 @@ WSpinnyBase::~WSpinnyBase() { } bool WSpinnyBase::shouldDrawVinylQuality() const { +#ifdef __VINYLCONTROL__ return m_bVinylActive && m_bSignalActive && m_bDrawVinylSignalQuality; +#else + return false; +#endif } void WSpinnyBase::onVinylSignalQualityUpdate(const VinylSignalQualityReport& report) { diff --git a/src/widget/wspinnyglsl.cpp b/src/widget/wspinnyglsl.cpp index 02e6a53398d..c0e21c3fbcd 100644 --- a/src/widget/wspinnyglsl.cpp +++ b/src/widget/wspinnyglsl.cpp @@ -115,14 +115,12 @@ void WSpinnyGLSL::paintGL() { drawTexture(m_pMaskTexture.get()); } -#ifdef __VINYLCONTROL__ // Overlay the signal quality drawing if vinyl is active if (shouldDrawVinylQuality()) { m_textureShader.release(); drawVinylQuality(); m_textureShader.bind(); } -#endif // To rotate the foreground image around the center of the image, // we use the classic trick of translating the coordinate system such that