From 51ac923364334481f90c5a655d37aa7af48e811a Mon Sep 17 00:00:00 2001 From: Alex Spataru Date: Tue, 28 Dec 2021 20:57:06 -0500 Subject: [PATCH] Only load 1x splash when needed --- src/Misc/ModuleManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Misc/ModuleManager.cpp b/src/Misc/ModuleManager.cpp index efd8563d..54f53353 100644 --- a/src/Misc/ModuleManager.cpp +++ b/src/Misc/ModuleManager.cpp @@ -84,11 +84,13 @@ Misc::ModuleManager::ModuleManager() qApp->setFont(font); // Get splash screen image - QPixmap pixmap(":/images/splash@1x.png"); + QPixmap pixmap; if (qApp->devicePixelRatio() >= 2) pixmap.load(":/images/splash@2x.png"); + else + pixmap.load(":/images/splash@1x.png"); - // Disable splash screen shadow on macOS + // Disable splash screen shadow on macOS #ifdef Q_OS_MAC m_splash.setWindowFlags(Qt::SplashScreen | Qt::NoDropShadowWindowHint); #endif