From 8dc16d620364c8cd38cabcb3d505bcee5ff7b713 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 4 Oct 2016 14:45:51 -0400 Subject: Try to fix a scaling issue with desktop backgrounds on 4K systems. --- src-qt5/core/lumina-desktop/LDesktopBackground.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-qt5/core/lumina-desktop/LDesktopBackground.cpp b/src-qt5/core/lumina-desktop/LDesktopBackground.cpp index dadbd848..3d33db71 100644 --- a/src-qt5/core/lumina-desktop/LDesktopBackground.cpp +++ b/src-qt5/core/lumina-desktop/LDesktopBackground.cpp @@ -38,7 +38,8 @@ void LDesktopBackground::setBackground(const QString& bgFile, const QString& for } else { mode = Qt::KeepAspectRatio; } - bgImage = bgImage.scaled(size(), mode); + if(bgImage.height() != this->height() && bgImage.width() != this->width() ){ bgImage = bgImage.scaled(size(), mode); } + //bgImage = bgImage.scaled(size(), mode); } // Calculate the offset -- cgit