Qt: Fix Software display driver frame sizing

This commit is contained in:
Vicki Pfau 2019-06-07 00:15:27 -07:00
parent e9aff885a2
commit aab47e52f5
2 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,6 @@ void DisplayGL::startDrawing(std::shared_ptr<CoreController> controller) {
messagePainter()->resize(size(), isAspectRatioLocked(), devicePixelRatio());
#endif
resizePainter();
connect(m_context.get(), &CoreController::didReset, this, &DisplayGL::resizeContext);
}
void DisplayGL::stopDrawing() {

View File

@ -906,6 +906,7 @@ void Window::reloadDisplayDriver() {
connect(m_controller.get(), &CoreController::unpaused, m_display.get(), &Display::unpauseDrawing);
connect(m_controller.get(), &CoreController::frameAvailable, m_display.get(), &Display::framePosted);
connect(m_controller.get(), &CoreController::statusPosted, m_display.get(), &Display::showMessage);
connect(m_controller.get(), &CoreController::didReset, m_display.get(), &Display::resizeContext);
attachWidget(m_display.get());
m_display->startDrawing(m_controller);
@ -1814,6 +1815,7 @@ void Window::setController(CoreController* controller, const QString& fname) {
connect(m_controller.get(), &CoreController::unpaused, m_display.get(), &Display::unpauseDrawing);
connect(m_controller.get(), &CoreController::frameAvailable, m_display.get(), &Display::framePosted);
connect(m_controller.get(), &CoreController::statusPosted, m_display.get(), &Display::showMessage);
connect(m_controller.get(), &CoreController::didReset, m_display.get(), &Display::resizeContext);
connect(m_controller.get(), &CoreController::unpaused, &m_inputController, &InputController::suspendScreensaver);
connect(m_controller.get(), &CoreController::frameAvailable, this, &Window::recordFrame);