From 29469077ee8562ca973eaffcef57c41a350eb39f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 27 Dec 2020 00:30:16 +1000 Subject: [PATCH] Qt: Force display to render after boot Fixes menu showing through when starting paused. --- src/duckstation-qt/qthostinterface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index f5ccdb509..273cd2618 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -359,7 +359,11 @@ void QtHostInterface::bootSystem(std::shared_ptr par } emit emulationStarting(); - BootSystem(*params); + if (!BootSystem(*params)) + return; + + // force a frame to be drawn to repaint the window + renderDisplay(); } void QtHostInterface::resumeSystemFromState(const QString& filename, bool boot_on_failure)