aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2021-04-29 15:13:53 +0200
committerRSDuck <RSDuck@users.noreply.github.com>2021-04-29 15:13:53 +0200
commiteae42fb9f85ed45df5d1d885088539acf1f7c785 (patch)
tree72011064b5ce773c5985d6c6bc29a85226f385c4
parentcffffa887efc3adf3e31950613f572b1d29787d4 (diff)
request repaint instead of update after each frame
-rw-r--r--src/frontend/qt_sdl/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 88a2482..fa5fd8a 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -275,7 +275,7 @@ EmuThread::EmuThread(QObject* parent) : QThread(parent)
EmuPause = 0;
RunningSomething = false;
- connect(this, SIGNAL(windowUpdate()), mainWindow->panel, SLOT(update()));
+ connect(this, SIGNAL(windowUpdate()), mainWindow->panel, SLOT(repaint()));
connect(this, SIGNAL(windowTitleChange(QString)), mainWindow, SLOT(onTitleUpdate(QString)));
connect(this, SIGNAL(windowEmuStart()), mainWindow, SLOT(onEmuStart()));
connect(this, SIGNAL(windowEmuStop()), mainWindow, SLOT(onEmuStop()));
@@ -2504,7 +2504,7 @@ void MainWindow::onUpdateVideoSettings(bool glchange)
delete panelNative;
}
createScreenPanel();
- connect(emuThread, SIGNAL(windowUpdate()), panel, SLOT(update()));
+ connect(emuThread, SIGNAL(windowUpdate()), panel, SLOT(repaint()));
if (hasOGL) emuThread->initOpenGL();
}