@@ -718,7 +718,6 @@ struct Window::PrivateData { | |||||
void setAutoScaling(const double scaling) noexcept | void setAutoScaling(const double scaling) noexcept | ||||
{ | { | ||||
DISTRHO_SAFE_ASSERT_RETURN(scaling > 0.0,); | DISTRHO_SAFE_ASSERT_RETURN(scaling > 0.0,); | ||||
d_stdout("setAutoScaling called with %f", scaling); | |||||
fAutoScaling = scaling; | fAutoScaling = scaling; | ||||
} | } | ||||
@@ -141,7 +141,7 @@ public: | |||||
/** | /** | ||||
Get the scale factor that will be used for the next UI. | Get the scale factor that will be used for the next UI. | ||||
@note: This function is only valid during createUI(), | @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; | static double getNextScaleFactor() noexcept; | ||||
@@ -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 uridAtomFloat(uridMap->map(uridMap->handle, LV2_ATOM__Float)); | ||||
const LV2_URID uridSampleRate(uridMap->map(uridMap->handle, LV2_PARAMETERS__sampleRate)); | 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) | for (int i=0; options[i].key != 0; ++i) | ||||
{ | { | ||||
@@ -52,6 +52,7 @@ | |||||
#define LV2_UI__portNotification LV2_UI_PREFIX "portNotification" | #define LV2_UI__portNotification LV2_UI_PREFIX "portNotification" | ||||
#define LV2_UI__portSubscribe LV2_UI_PREFIX "portSubscribe" | #define LV2_UI__portSubscribe LV2_UI_PREFIX "portSubscribe" | ||||
#define LV2_UI__resize LV2_UI_PREFIX "resize" | #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__showInterface LV2_UI_PREFIX "showInterface" | ||||
#define LV2_UI__touch LV2_UI_PREFIX "touch" | #define LV2_UI__touch LV2_UI_PREFIX "touch" | ||||
#define LV2_UI__ui LV2_UI_PREFIX "ui" | #define LV2_UI__ui LV2_UI_PREFIX "ui" | ||||