diff options
author | RSDuck <RSDuck@users.noreply.github.com> | 2023-05-06 19:41:11 +0200 |
---|---|---|
committer | RSDuck <RSDuck@users.noreply.github.com> | 2023-05-06 19:41:28 +0200 |
commit | 758db2b986cbb8c11652aa53ce0bf91536e5c83c (patch) | |
tree | d4765a93ec9025d949cdcdc1d6b813ab0ff6f6f0 | |
parent | 5f991d07a3baf6f8feb03004ad39e86fd17db11f (diff) |
disable screen filtering when drawing with QT
it can bring everything to a crawl and OpenGL display can be used as an alternative
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 47936b4..4ed7d3f 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -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(); } |