kopia lustrzana https://github.com/f4exb/sdrangel
Unify TV screen (5)
rodzic
6109be8eeb
commit
35138b0e93
|
@ -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)));
|
||||
|
||||
|
|
|
@ -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)));
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -50,6 +50,11 @@ TVScreen::~TVScreen()
|
|||
cleanup();
|
||||
}
|
||||
|
||||
void TVScreen::setColor(bool blnColor)
|
||||
{
|
||||
m_objGLShaderArray.setColor(blnColor);
|
||||
}
|
||||
|
||||
QRgb* TVScreen::getRowBuffer(int intRow)
|
||||
{
|
||||
if (!m_blnGLContextInitialized)
|
||||
|
|
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue