Browse Source

Update distrho

tags/v2.1-alpha1-winvst
falkTX 6 years ago
parent
commit
903313aace
4 changed files with 10 additions and 6 deletions
  1. +2
    -0
      source/modules/distrho/DistrhoPluginMain.cpp
  2. +2
    -0
      source/modules/distrho/DistrhoUIMain.cpp
  3. +3
    -3
      source/modules/distrho/src/DistrhoDefines.h
  4. +3
    -3
      source/modules/distrho/src/DistrhoUIInternal.hpp

+ 2
- 0
source/modules/distrho/DistrhoPluginMain.cpp View File

@@ -27,4 +27,6 @@
# include "src/DistrhoPluginLV2export.cpp"
#elif defined(DISTRHO_PLUGIN_TARGET_VST)
# include "src/DistrhoPluginVST.cpp"
#else
# error unsupported format
#endif

+ 2
- 0
source/modules/distrho/DistrhoUIMain.cpp View File

@@ -26,4 +26,6 @@
# include "src/DistrhoUILV2.cpp"
#elif defined(DISTRHO_PLUGIN_TARGET_VST)
// nothing
#else
# error unsupported format
#endif

+ 3
- 3
source/modules/distrho/src/DistrhoDefines.h View File

@@ -28,15 +28,15 @@
/* Check OS */
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
# define DISTRHO_PLUGIN_EXPORT extern "C" __declspec (dllexport)
# define DISTRHO_OS_WINDOWS 1
# define DISTRHO_OS_WINDOWS 1
# define DISTRHO_DLL_EXTENSION "dll"
#else
# define DISTRHO_PLUGIN_EXPORT extern "C" __attribute__ ((visibility("default")))
# if defined(__APPLE__)
# define DISTRHO_OS_MAC 1
# define DISTRHO_OS_MAC 1
# define DISTRHO_DLL_EXTENSION "dylib"
# elif defined(__HAIKU__)
# define DISTRHO_OS_HAIKU 1
# define DISTRHO_OS_HAIKU 1
# elif defined(__linux__) || defined(__linux)
# define DISTRHO_OS_LINUX 1
# endif


+ 3
- 3
source/modules/distrho/src/DistrhoUIInternal.hpp View File

@@ -434,9 +434,9 @@ public:
return glWindow.handlePluginKeyboard(press, key);
}
#else
void setWindowSize(const uint width, const uint height, const bool updateUI = false) {}
void setWindowTransientWinId(const uintptr_t winId) {}
bool setWindowVisible(const bool yesNo) { return true; }
void setWindowSize(const uint, const uint, const bool) {}
void setWindowTransientWinId(const uintptr_t) {}
bool setWindowVisible(const bool) { return true; }
#endif

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


Loading…
Cancel
Save