Packets are shown on screen

This commit is contained in:
Ollo
2023-08-17 21:51:03 +02:00
parent 536779910e
commit c5bfaa2a4a
4 changed files with 21 additions and 12 deletions

View File

@@ -11,15 +11,8 @@ MainWindow::MainWindow(QWidget *parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->server = new UdpLedServer ();
this->mOffscreenPanel = new QImage(DEFAULT_WIDTH + LED_DISTANCE, DEFAULT_HEIGHT + LED_DISTANCE, QImage::Format_RGB32);
for(int x=0; x < (PANEL_WIDTH * MAXIMUM_PANELSIZE); x++) {
for(int y=0; y < PANEL_HEIGHT; y++) {
setLED(x, y);
}
}
updatePanel();
this->server = new UdpLedServer (NULL, this);
}
MainWindow::~MainWindow()