diff main/main.cpp @ 952:45bb2eaf7fe1 scalable-icons

Various fixes to scalable rendering
author Chris Cannam
date Wed, 06 May 2015 10:44:19 +0100
parents 62198dde171e
children 4a8f87c175f7
line wrap: on
line diff
--- a/main/main.cpp	Wed May 06 10:08:28 2015 +0100
+++ b/main/main.cpp	Wed May 06 10:44:19 2015 +0100
@@ -272,13 +272,15 @@
     QApplication::setOrganizationDomain("sonicvisualiser.org");
     QApplication::setApplicationName(QApplication::tr("Sonic Visualiser"));
 
+    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+
     QSplashScreen *splash = 0;
 
     QSettings settings;
 
     settings.beginGroup("Preferences");
     if (settings.value("show-splash", true).toBool()) {
-        QPixmap pixmap(":/icons/sv-splash.png");
+        QPixmap pixmap(":/icons/scalable/sv-splash@2x.png");
         QPainter painter;
         painter.begin(&pixmap);
         QString text = QString("v%1").arg(SV_VERSION);