# HG changeset patch
# User Chris Cannam
# Date 1430905459 -3600
# Node ID 45bb2eaf7fe1cb939bf44eba955bd14827d7bc0c
# Parent 61703996628d794c6d7ab2e53e09e172a052c362
Various fixes to scalable rendering
diff -r 61703996628d -r 45bb2eaf7fe1 .hgsubstate
--- a/.hgsubstate Wed May 06 10:08:28 2015 +0100
+++ b/.hgsubstate Wed May 06 10:44:19 2015 +0100
@@ -1,6 +1,6 @@
d16f0fd6db6104d87882bc43788a3bb1b0f8c528 dataquay
-28748e29e057cdfba4706559a3fbba04569f1404 icons/scalable
+886bc1927f683ff757adaa51b9398d086abbea96 icons/scalable
55ece8862b6d3a54aad271a53f9c1615e5d3bcf8 sv-dependency-builds
dc1a360f2b694d73d4bc858b708db44249e2cddc svapp
32ab6c48efaa23d24a67315bccdc27f3ba1a18d5 svcore
-4b5efd76a55c814ba830ed694ae0886eb7a148b8 svgui
+85b39667e9cf544206c3f68bd14692678770656c svgui
diff -r 61703996628d -r 45bb2eaf7fe1 main/main.cpp
--- 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);
diff -r 61703996628d -r 45bb2eaf7fe1 sonic-visualiser.qrc
--- a/sonic-visualiser.qrc Wed May 06 10:08:28 2015 +0100
+++ b/sonic-visualiser.qrc Wed May 06 10:44:19 2015 +0100
@@ -23,6 +23,8 @@
icons/scalable/sv-icon-light.svg
icons/scalable/sv-icon.svg
icons/scalable/sv-splash.svg
+ icons/scalable/sv-splash.png
+ icons/scalable/sv-splash@2x.png
icons/scalable/waveform.svg
icons/waveform.png
icons/spectrum.png