From 287dcfe606fe3d8f02f017fcfeecc7c3ef76005a Mon Sep 17 00:00:00 2001 From: Aaron Rainbolt Date: Tue, 24 Jan 2023 23:59:05 -0600 Subject: [PATCH] Ignore aspect ratio when scaling background (Bug #1) Qt:KeepAspectRatio results in the background image becoming strangely mangled. Changing to Qt::IgnoreAspectRatio results in scaling behavior very similar to the behavior used by PCManFM-Qt by default when scaling wallpapers, resulting in the image sometimes looking "stretched" or "squished", but never mangled. --- src/installerprompt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installerprompt.cpp b/src/installerprompt.cpp index 9f23d6c..9840d51 100644 --- a/src/installerprompt.cpp +++ b/src/installerprompt.cpp @@ -16,7 +16,7 @@ InstallerPrompt::InstallerPrompt(QWidget *parent) int height = screenGeometry.height(); int width = screenGeometry.width(); - bg = bg.scaled(width, height, Qt::KeepAspectRatio); + bg = bg.scaled(width, height, Qt::IgnoreAspectRatio); QPalette palette; palette.setBrush(QPalette::Window, bg);