request repaint instead of update after each frame

This commit is contained in:
RSDuck 2021-04-29 15:13:53 +02:00
parent cffffa887e
commit eae42fb9f8
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}