commit 35cfb34053791828f91b3ecb69f985d24888df8a
parent 2ed5e0a66577f7f32f97cc4811d469b2226eaf83
Author: falkTX <falktx@falktx.com>
Date: Wed, 27 Mar 2019 16:33:01 +0100
Minor corrections
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
4 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp
@@ -718,7 +718,6 @@ struct Window::PrivateData {
void setAutoScaling(const double scaling) noexcept
{
DISTRHO_SAFE_ASSERT_RETURN(scaling > 0.0,);
- d_stdout("setAutoScaling called with %f", scaling);
fAutoScaling = scaling;
}
diff --git a/distrho/DistrhoUI.hpp b/distrho/DistrhoUI.hpp
@@ -141,7 +141,7 @@ public:
/**
Get the scale factor that will be used for the next UI.
@note: This function is only valid during createUI(),
- it will return null when called from anywhere else.
+ it will return 1.0 when called from anywhere else.
*/
static double getNextScaleFactor() noexcept;
diff --git a/distrho/src/DistrhoUILV2.cpp b/distrho/src/DistrhoUILV2.cpp
@@ -441,7 +441,7 @@ static LV2UI_Handle lv2ui_instantiate(const LV2UI_Descriptor*, const char* uri,
{
const LV2_URID uridAtomFloat(uridMap->map(uridMap->handle, LV2_ATOM__Float));
const LV2_URID uridSampleRate(uridMap->map(uridMap->handle, LV2_PARAMETERS__sampleRate));
- const LV2_URID uridScaleFactor(uridMap->map(uridMap->handle, "urn:carla:scale"));
+ const LV2_URID uridScaleFactor(uridMap->map(uridMap->handle, LV2_UI__scaleFactor));
for (int i=0; options[i].key != 0; ++i)
{
diff --git a/distrho/src/lv2/ui.h b/distrho/src/lv2/ui.h
@@ -52,6 +52,7 @@
#define LV2_UI__portNotification LV2_UI_PREFIX "portNotification"
#define LV2_UI__portSubscribe LV2_UI_PREFIX "portSubscribe"
#define LV2_UI__resize LV2_UI_PREFIX "resize"
+#define LV2_UI__scaleFactor LV2_UI_PREFIX "scaleFactor"
#define LV2_UI__showInterface LV2_UI_PREFIX "showInterface"
#define LV2_UI__touch LV2_UI_PREFIX "touch"
#define LV2_UI__ui LV2_UI_PREFIX "ui"