disable screen filtering when drawing with QT

it can bring everything to a crawl and OpenGL display can be used as an alternative
This commit is contained in:
RSDuck 2023-05-06 19:41:11 +02:00
parent 5f991d07a3
commit 758db2b986
1 changed files with 2 additions and 2 deletions

View File

@ -1057,8 +1057,6 @@ void ScreenPanelNative::paintEvent(QPaintEvent* event)
memcpy(screen[1].scanLine(0), GPU::Framebuffer[frontbuf][1], 256 * 192 * 4);
emuThread->FrontBufferLock.unlock();
painter.setRenderHint(QPainter::SmoothPixmapTransform, Config::ScreenFilter != 0);
QRect screenrc(0, 0, 256, 192);
for (int i = 0; i < numScreens; i++)
@ -1875,6 +1873,8 @@ void MainWindow::createScreenPanel()
}
setCentralWidget(panelWidget);
actScreenFiltering->setEnabled(hasOGL);
connect(this, SIGNAL(screenLayoutChange()), panelWidget, SLOT(onScreenLayoutChanged()));
emit screenLayoutChange();
}