Fix mouse input loss on heavy renderer frameskipping

This commit is contained in:
Cacodemon345
2022-02-03 16:55:32 +06:00
parent ca002ec886
commit 97b2feaa27
2 changed files with 3 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ MainWindow::MainWindow(QWidget *parent) :
emit updateMenuResizeOptions(); emit updateMenuResizeOptions();
connect(this, &MainWindow::pollMouse, ui->stackedWidget, &RendererStack::mousePoll); connect(this, &MainWindow::pollMouse, ui->stackedWidget, &RendererStack::mousePoll, Qt::DirectConnection);
connect(this, &MainWindow::setMouseCapture, this, [this](bool state) { connect(this, &MainWindow::setMouseCapture, this, [this](bool state) {
mouse_capture = state ? 1 : 0; mouse_capture = state ? 1 : 0;
@@ -1525,4 +1525,4 @@ void MainWindow::changeEvent(QEvent* event)
} }
#endif #endif
QWidget::changeEvent(event); QWidget::changeEvent(event);
} }

View File

@@ -69,4 +69,4 @@ std::vector<std::tuple<uint8_t*, std::atomic_flag*>> SoftwareRenderer::getBuffer
buffers.push_back(std::make_tuple(images[1]->bits(), &buf_usage[1])); buffers.push_back(std::make_tuple(images[1]->bits(), &buf_usage[1]));
return buffers; return buffers;
} }