1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Unify TV screen (5)

This commit is contained in:
f4exb 2018-03-11 19:43:40 +01:00
parent 6109be8eeb
commit 35138b0e93
5 changed files with 9 additions and 0 deletions

View File

@ -278,6 +278,7 @@ ATVDemodGUI::ATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, Base
m_inputSampleRate(48000)
{
ui->setupUi(this);
ui->screenTV->setColor(false);
setAttribute(Qt::WA_DeleteOnClose, true);
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));

View File

@ -260,6 +260,7 @@ DATVDemodGUI::DATVDemodGUI(PluginAPI* objPluginAPI, DeviceUISet *deviceUISet, Ba
m_blnDoApplySettings(true)
{
ui->setupUi(this);
ui->screenTV->setColor(true);
setAttribute(Qt::WA_DeleteOnClose, true);
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));

View File

@ -42,6 +42,7 @@ public:
GLShaderTVArray(bool blnColor);
~GLShaderTVArray();
void setColor(bool blnColor) { m_blnColor = blnColor; }
void InitializeGL(int intCols, int intRows);
void ResizeContainer(int intCols, int intRows);
void Cleanup();

View File

@ -50,6 +50,11 @@ TVScreen::~TVScreen()
cleanup();
}
void TVScreen::setColor(bool blnColor)
{
m_objGLShaderArray.setColor(blnColor);
}
QRgb* TVScreen::getRowBuffer(int intRow)
{
if (!m_blnGLContextInitialized)

View File

@ -44,6 +44,7 @@ public:
TVScreen(bool blnColor, QWidget* parent = 0);
~TVScreen();
void setColor(bool blnColor);
void resizeTVScreen(int intCols, int intRows);
void renderImage(unsigned char * objData);
QRgb* getRowBuffer(int intRow);