From 8beb7e8e160e5638ffe59f5b934d27ee45895a79 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 11 Jul 2017 10:36:12 -0700 Subject: [PATCH] Qt: Fix Software renderer not handling alpha bits properly --- CHANGES | 1 + src/platform/qt/DisplayQt.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index d1aff4f44..728f5c818 100644 --- a/CHANGES +++ b/CHANGES @@ -180,6 +180,7 @@ Bugfixes: - GBA Timer: Fix count-up timing overflowing timer 3 - Core: Fix rewinding getting out of sync (fixes mgba.io/i/791) - Qt: Fix GL-less build + - Qt: Fix Software renderer not handling alpha bits properly Misc: - Qt: Add language selector - GBA Timer: Improve accuracy of timers diff --git a/src/platform/qt/DisplayQt.cpp b/src/platform/qt/DisplayQt.cpp index 824df243e..dbbd7aad9 100644 --- a/src/platform/qt/DisplayQt.cpp +++ b/src/platform/qt/DisplayQt.cpp @@ -50,7 +50,8 @@ void DisplayQt::framePosted(const uint32_t* buffer) { m_backing = QImage(reinterpret_cast(buffer), m_width, m_height, QImage::Format_RGB555); #endif #else - m_backing = QImage(reinterpret_cast(buffer), m_width, m_height, QImage::Format_RGB32); + m_backing = QImage(reinterpret_cast(buffer), m_width, m_height, QImage::Format_ARGB32); + m_backing = m_backing.convertToFormat(QImage::Format_RGB32); #endif }