diff --git a/include/gui/glshadersimple.h b/include/gui/glshadersimple.h index f64ad74b3..65b370f5f 100644 --- a/include/gui/glshadersimple.h +++ b/include/gui/glshadersimple.h @@ -15,8 +15,8 @@ // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// -#ifndef INCLUDE_GUI_GLSHADERSIMPLEPOLYLINE_H_ -#define INCLUDE_GUI_GLSHADERSIMPLEPOLYLINE_H_ +#ifndef INCLUDE_GUI_GLSHADERSIMPLE_H_ +#define INCLUDE_GUI_GLSHADERSIMPLE_H_ #include @@ -47,4 +47,4 @@ private: static const QString m_fragmentShaderSourceColored; }; -#endif /* INCLUDE_GUI_GLSHADERSIMPLEPOLYLINE_H_ */ +#endif /* INCLUDE_GUI_GLSHADERSIMPLE_H_ */ diff --git a/include/gui/glshadertextured.h b/include/gui/glshadertextured.h index 69546497c..2e5343f8d 100644 --- a/include/gui/glshadertextured.h +++ b/include/gui/glshadertextured.h @@ -3,6 +3,7 @@ // written by Edouard Griffiths // // // // See: http://glslstudio.com/primer/#gl2frag // +// https://gitlab.com/pteam/korvins-qtbase/blob/5.4/examples/opengl/cube/mainwidget.cpp // // // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // diff --git a/include/gui/glspectrum.h b/include/gui/glspectrum.h index 133b3ac97..dee37cc5a 100644 --- a/include/gui/glspectrum.h +++ b/include/gui/glspectrum.h @@ -73,8 +73,10 @@ public: private: struct ChannelMarkerState { ChannelMarker* m_channelMarker; +#ifdef GL_DEPRECATED QRectF m_glRect; QRectF m_glRectDsb; +#endif QMatrix4x4 m_glMatrixWaterfall; QMatrix4x4 m_glMatrixDsbWaterfall; QMatrix4x4 m_glMatrixFreqScale; @@ -84,9 +86,11 @@ private: QRect m_rect; ChannelMarkerState(ChannelMarker* channelMarker) : - m_channelMarker(channelMarker), + m_channelMarker(channelMarker) +#ifdef GL_DEPRECATED m_glRect(), m_glRectDsb() +#endif { } }; QList m_channelMarkerStates; diff --git a/sdrbase/gui/glspectrum.cpp b/sdrbase/gui/glspectrum.cpp index 2025367f2..da01a809a 100644 --- a/sdrbase/gui/glspectrum.cpp +++ b/sdrbase/gui/glspectrum.cpp @@ -1774,20 +1774,14 @@ void GLSpectrum::applyChanges() } - // draw the effective BW rectangle - dv->m_glRect.setRect( - m_frequencyScale.getPosFromValue(xc + nw) / (float)(width() - leftMargin - rightMargin), - 0, - (pw-nw) / (float)m_sampleRate, - 1); - // draw the DSB rectangle +#ifdef GL_DEPRECATED dv->m_glRectDsb.setRect( m_frequencyScale.getPosFromValue(xc - (dsbw/2)) / (float)(width() - leftMargin - rightMargin), 0, dsbw / (float)m_sampleRate, 1); - +#endif QMatrix4x4 glMatrixDsb; glMatrixDsb.setToIdentity(); glMatrixDsb.translate( @@ -1829,6 +1823,14 @@ void GLSpectrum::applyChanges() (float) frequencyScaleHeight / (float) height() ); + // draw the effective BW rectangle +#ifdef GL_DEPRECATED + dv->m_glRect.setRect( + m_frequencyScale.getPosFromValue(xc + nw) / (float)(width() - leftMargin - rightMargin), + 0, + (pw-nw) / (float)m_sampleRate, + 1); +#endif QMatrix4x4 glMatrix; glMatrix.setToIdentity(); glMatrix.translate(