all repos — mgba @ aab47e52f5261e714785c31c953f1a28ad8ad9ff

mGBA Game Boy Advance Emulator

Qt: Fix Software display driver frame sizing
Vicki Pfau vi@endrift.com
Fri, 07 Jun 2019 00:15:27 -0700
commit

aab47e52f5261e714785c31c953f1a28ad8ad9ff

parent

e9aff885a267c228999958ea590441064951c289

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/DisplayGL.cppsrc/platform/qt/DisplayGL.cpp

@@ -111,7 +111,6 @@ #else

messagePainter()->resize(size(), isAspectRatioLocked(), devicePixelRatio()); #endif resizePainter(); - connect(m_context.get(), &CoreController::didReset, this, &DisplayGL::resizeContext); } void DisplayGL::stopDrawing() {
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -906,6 +906,7 @@ connect(m_controller.get(), &CoreController::paused, m_display.get(), &Display::pauseDrawing);

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 @@ connect(m_controller.get(), &CoreController::paused, m_display.get(), &Display::pauseDrawing);

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);