Browse Source

Fix some compiler warnings

Signed-off-by: falkTX <falktx@falktx.com>
pull/375/head
falkTX 3 years ago
parent
commit
2e304d24dc
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 3 additions and 2 deletions
  1. +1
    -1
      dgl/Window.hpp
  2. +1
    -1
      distrho/src/DistrhoPluginVST3.cpp
  3. +1
    -0
      distrho/src/DistrhoUIInternal.hpp

+ 1
- 1
dgl/Window.hpp View File

@@ -512,7 +512,7 @@ private:
bool isVST3,
bool doPostInit);

DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Window);
DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Window)
};

// -----------------------------------------------------------------------


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

@@ -1554,7 +1554,7 @@ public:

if (hints & kParameterIsBoolean)
{
const float midRange = ranges.min + (ranges.max - ranges.min) / 2.0f;
const float midRange = ranges.min + (ranges.max - ranges.min) * 0.5f;
value = value > midRange ? ranges.max : ranges.min;
}
else if (hints & kParameterIsInteger)


+ 1
- 0
distrho/src/DistrhoUIInternal.hpp View File

@@ -288,6 +288,7 @@ public:
{
#if DISTRHO_PLUGIN_HAS_EXTERNAL_UI
// TODO
(void)x; (void)y;
#else
uiData->window->setOffset(x, y);
#endif


Loading…
Cancel
Save