aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv_qt.cpp
diff options
context:
space:
mode:
authorAlexandros Theodotou <alex@zrythm.org>2021-02-12 11:07:58 +0000
committerDavid Robillard <d@drobilla.net>2021-02-15 10:21:44 -0500
commit08ca5ba8003ba421566412675be4d9bebd85b82c (patch)
tree290415c2ecaf4a8a729a2aa8f4a029ac65a9ddfa /src/jalv_qt.cpp
parentf235528015532bc0885330476f2a3b666c4c9a4a (diff)
downloadjalv-08ca5ba8003ba421566412675be4d9bebd85b82c.tar.gz
jalv-08ca5ba8003ba421566412675be4d9bebd85b82c.tar.bz2
jalv-08ca5ba8003ba421566412675be4d9bebd85b82c.zip
Pass ui:scaleFactor option to UIs
This option was added in LV2 1.18.0.
Diffstat (limited to 'src/jalv_qt.cpp')
-rw-r--r--src/jalv_qt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index ab528fd..2bf61f9 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -708,6 +708,12 @@ jalv_ui_refresh_rate(Jalv*)
return (float)QGuiApplication::primaryScreen()->refreshRate();
}
+float
+jalv_ui_scale_factor(Jalv*)
+{
+ return (float)QGuiApplication::primaryScreen()->devicePixelRatio();
+}
+
int
jalv_open_ui(Jalv* jalv)
{