make screen filtering work with Qt rendering, too
This commit is contained in:
parent
d480808d72
commit
eca52bcca2
|
@ -668,6 +668,8 @@ void ScreenPanelNative::paintEvent(QPaintEvent* event)
|
|||
{
|
||||
QPainter painter(this);
|
||||
|
||||
painter.setRenderHint(QPainter::SmoothPixmapTransform, filter);
|
||||
|
||||
// fill background
|
||||
painter.fillRect(event->rect(), QColor::fromRgb(0, 0, 0));
|
||||
|
||||
|
|
|
@ -761,7 +761,6 @@ void MainWindow::createScreenPanel()
|
|||
}
|
||||
setCentralWidget(panel);
|
||||
|
||||
actScreenFiltering->setEnabled(hasOGL);
|
||||
panel->osdSetEnabled(showOSD);
|
||||
|
||||
connect(this, SIGNAL(screenLayoutChange()), panel, SLOT(onScreenLayoutChanged()));
|
||||
|
|
Loading…
Reference in New Issue