all repos — mgba @ b192330166b2b25f5e71c2b4e1eb5c78a9871e99

mGBA Game Boy Advance Emulator

Qt: Fix jumbled background when paused
Vicki Pfau vi@endrift.com
Sun, 30 Sep 2018 13:34:26 -0700
commit

b192330166b2b25f5e71c2b4e1eb5c78a9871e99

parent

426993bbbb57cbcd06afd3c0ae5dc03254dff2a8

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

jump to
M CHANGESCHANGES

@@ -111,6 +111,7 @@ - GBA Video: Fix caching with background toggling (fixes mgba.io/i/1118)

- 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
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -1820,7 +1820,7 @@

void Window::updateFrame() { QSize size = m_controller->screenDimensions(); QImage currentImage(reinterpret_cast<const uchar*>(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);