Browse Source

Minor corrections

Signed-off-by: falkTX <falktx@falktx.com>
pull/148/head
falkTX 5 years ago
parent
commit
35cfb34053
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 3 additions and 3 deletions
  1. +0
    -1
      dgl/src/Window.cpp
  2. +1
    -1
      distrho/DistrhoUI.hpp
  3. +1
    -1
      distrho/src/DistrhoUILV2.cpp
  4. +1
    -0
      distrho/src/lv2/ui.h

+ 0
- 1
dgl/src/Window.cpp View File

@@ -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;
}


+ 1
- 1
distrho/DistrhoUI.hpp View File

@@ -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;



+ 1
- 1
distrho/src/DistrhoUILV2.cpp View File

@@ -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)
{


+ 1
- 0
distrho/src/lv2/ui.h View File

@@ -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"


Loading…
Cancel
Save