From 8b836555f6e2668b8874f84f5f39c05a787a5075 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 22 Mar 2020 21:25:10 +1000 Subject: [PATCH] Qt: Disable auto-fill background and set WA_NoSystemBackground --- src/duckstation-qt/qtdisplaywidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/duckstation-qt/qtdisplaywidget.cpp b/src/duckstation-qt/qtdisplaywidget.cpp index dca417856..4edb0703f 100644 --- a/src/duckstation-qt/qtdisplaywidget.cpp +++ b/src/duckstation-qt/qtdisplaywidget.cpp @@ -13,7 +13,9 @@ QtDisplayWidget::QtDisplayWidget(QtHostInterface* host_interface, QWidget* paren : QWidget(parent), m_host_interface(host_interface) { // We want a native window for both D3D and OpenGL. + setAutoFillBackground(false); setAttribute(Qt::WA_NativeWindow, true); + setAttribute(Qt::WA_NoSystemBackground, true); setAttribute(Qt::WA_PaintOnScreen, true); }