1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 05:11:49 -05:00

TV screen: removed useless render immediate indicator

This commit is contained in:
f4exb 2018-03-23 09:24:18 +01:00
parent ee027eda6a
commit 94d3c7155c
4 changed files with 1 additions and 8 deletions

View File

@ -297,7 +297,6 @@ DSDDemodGUI::DSDDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
ui->setupUi(this);
ui->screenTV->setColor(true);
ui->screenTV->resizeTVScreen(200,200);
ui->screenTV->setRenderImmediate(true);
setAttribute(Qt::WA_DeleteOnClose, true);
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));

View File

@ -83,6 +83,7 @@ void ScopeVisXY::feed(const SampleVector::const_iterator& cbegin, const SampleVe
drawGraticule();
m_tvScreen->renderImage(0);
m_tvScreen->update();
usleep(5000);
m_tvScreen->resetImage(m_alphaReset);
m_pixelCount = 0;

View File

@ -38,7 +38,6 @@ TVScreen::TVScreen(bool blnColor, QWidget* parent) :
m_blnConfigChanged = false;
m_blnDataChanged = false;
m_blnGLContextInitialized = false;
m_blnRenderImmediate = false;
//Par défaut
m_intAskedCols = TV_COLS;
@ -71,10 +70,6 @@ void TVScreen::renderImage(unsigned char * objData)
{
m_chrLastData = objData;
m_blnDataChanged = true;
if (m_blnRenderImmediate) {
update();
}
}
void TVScreen::resetImage()

View File

@ -55,7 +55,6 @@ public:
bool selectRow(int intLine);
bool setDataColor(int intCol, int intRed, int intGreen, int intBlue);
bool setDataColor(int intCol, int intRed, int intGreen, int intBlue, int intAlpha);
void setRenderImmediate(bool blnRenderImmediate) { m_blnRenderImmediate = blnRenderImmediate; }
void setAlphaBlend(bool blnAlphaBlend) { m_objGLShaderArray.setAlphaBlend(blnAlphaBlend); }
void setAlphaReset() { m_objGLShaderArray.setAlphaReset(); }
@ -80,7 +79,6 @@ private:
QMutex m_objMutex;
bool m_blnDataChanged;
bool m_blnConfigChanged;
bool m_blnRenderImmediate;
GLShaderTVArray m_objGLShaderArray;