all repos — mgba @ 0a9104113c077ad54a2a746ccb61f2c31e3db72e

mGBA Game Boy Advance Emulator

Qt: Fix window background
Jeffrey Pfau jeffrey@endrift.com
Mon, 18 Jan 2016 20:05:25 -0800
commit

0a9104113c077ad54a2a746ccb61f2c31e3db72e

parent

44d1dd7f8438ce41f9d85b0e5baf09f7b2423968

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

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

@@ -104,7 +104,7 @@ connect(m_controller, SIGNAL(stateLoaded(GBAThread*)), m_display, SLOT(forceDraw()));

connect(m_controller, SIGNAL(rewound(GBAThread*)), m_display, SLOT(forceDraw())); connect(m_controller, &GameController::gamePaused, [this]() { QImage currentImage(reinterpret_cast<const uchar*>(m_controller->drawContext()), VIDEO_HORIZONTAL_PIXELS, - VIDEO_VERTICAL_PIXELS, 1024, QImage::Format_RGBX8888); + VIDEO_VERTICAL_PIXELS, VIDEO_HORIZONTAL_PIXELS * BYTES_PER_PIXEL, QImage::Format_RGBX8888); QPixmap pixmap; pixmap.convertFromImage(currentImage); m_screenWidget->setPixmap(pixmap);