diff --git a/CHANGES b/CHANGES index 577b69116..486778c87 100644 --- a/CHANGES +++ b/CHANGES @@ -111,6 +111,7 @@ Bugfixes: - Wii: Fix drawing caching regression (fixes mgba.io/i/1185) - Switch: Fix incorrect mapping for fast forward cap - GB, GBA: Fix broken opposing button filter (fixes mgba.io/i/1191) + - Qt: Fix jumbled background when paused Misc: - mGUI: Add SGB border configuration option - mGUI: Add support for different settings types diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index e8bdcb5fd..e5e33566b 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -1820,7 +1820,7 @@ void Window::focusCheck() { void Window::updateFrame() { QSize size = m_controller->screenDimensions(); QImage currentImage(reinterpret_cast(m_controller->drawContext()), size.width(), size.height(), - 256 * BYTES_PER_PIXEL, QImage::Format_RGBX8888); + size.width() * BYTES_PER_PIXEL, QImage::Format_RGBX8888); QPixmap pixmap; pixmap.convertFromImage(currentImage); m_screenWidget->setPixmap(pixmap);