From 2de952c5212e83e1d3ef9f2c37435349d0706053 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 13 Oct 2016 14:01:48 -0700 Subject: [PATCH] Qt: Fix changing resolution of software renderer --- CHANGES | 1 + src/platform/qt/DisplayQt.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 6ff8d45e3..10b18f9ea 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ Bugfixes: - GBA BIOS: Fix invalid CpuSet not setting BIOS prefetch - GB MBC: Fix SRAM dangling pointer with RTC games - Windows: Fix Unicode directory handling + - Qt: Fix changing resolution of software renderer 0.5.1: (2016-10-05) Bugfixes: diff --git a/src/platform/qt/DisplayQt.cpp b/src/platform/qt/DisplayQt.cpp index 68a68e578..b11294638 100644 --- a/src/platform/qt/DisplayQt.cpp +++ b/src/platform/qt/DisplayQt.cpp @@ -23,6 +23,7 @@ DisplayQt::DisplayQt(QWidget* parent) void DisplayQt::startDrawing(mCoreThread* context) { context->core->desiredVideoDimensions(context->core, &m_width, &m_height); + m_backing = std::move(QImage()); m_isDrawing = true; }