make screen filtering work with Qt rendering, too

This commit is contained in:
Arisotura 2024-05-26 00:23:50 +02:00
parent d480808d72
commit eca52bcca2
2 changed files with 2 additions and 1 deletions

View File

@ -668,6 +668,8 @@ void ScreenPanelNative::paintEvent(QPaintEvent* event)
{ {
QPainter painter(this); QPainter painter(this);
painter.setRenderHint(QPainter::SmoothPixmapTransform, filter);
// fill background // fill background
painter.fillRect(event->rect(), QColor::fromRgb(0, 0, 0)); painter.fillRect(event->rect(), QColor::fromRgb(0, 0, 0));

View File

@ -761,7 +761,6 @@ void MainWindow::createScreenPanel()
} }
setCentralWidget(panel); setCentralWidget(panel);
actScreenFiltering->setEnabled(hasOGL);
panel->osdSetEnabled(showOSD); panel->osdSetEnabled(showOSD);
connect(this, SIGNAL(screenLayoutChange()), panel, SLOT(onScreenLayoutChanged())); connect(this, SIGNAL(screenLayoutChange()), panel, SLOT(onScreenLayoutChanged()));