diff options
author | Ken Moore <ken@ixsystems.com> | 2016-10-04 14:45:51 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-10-04 14:45:51 -0400 |
commit | 8dc16d620364c8cd38cabcb3d505bcee5ff7b713 (patch) | |
tree | e015a8ad3964fb49ee92fbddc8bc0cf0269593d0 | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-8dc16d620364c8cd38cabcb3d505bcee5ff7b713.tar.gz lumina-8dc16d620364c8cd38cabcb3d505bcee5ff7b713.tar.bz2 lumina-8dc16d620364c8cd38cabcb3d505bcee5ff7b713.zip |
Try to fix a scaling issue with desktop backgrounds on 4K systems.
-rw-r--r-- | src-qt5/core/lumina-desktop/LDesktopBackground.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |