Browse Source

Fix missing UIWidget::onResize handler

Signed-off-by: falkTX <falktx@falktx.com>
pull/272/head
falkTX 4 years ago
parent
commit
a06479325e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 3 additions and 0 deletions
  1. +1
    -0
      distrho/DistrhoInfo.hpp
  2. +2
    -0
      distrho/src/DistrhoUI.cpp

+ 1
- 0
distrho/DistrhoInfo.hpp View File

@@ -562,6 +562,7 @@ START_NAMESPACE_DISTRHO
@see Plugin::getTimePosition() @see Plugin::getTimePosition()
*/ */
#define DISTRHO_PLUGIN_WANT_TIMEPOS 1 #define DISTRHO_PLUGIN_WANT_TIMEPOS 1

/** /**
Wherever the %UI uses a custom toolkit implementation based on OpenGL.@n Wherever the %UI uses a custom toolkit implementation based on OpenGL.@n
When enabled, the macros @ref DISTRHO_UI_CUSTOM_INCLUDE_PATH and @ref DISTRHO_UI_CUSTOM_WIDGET_TYPE are required. When enabled, the macros @ref DISTRHO_UI_CUSTOM_INCLUDE_PATH and @ref DISTRHO_UI_CUSTOM_WIDGET_TYPE are required.


+ 2
- 0
distrho/src/DistrhoUI.cpp View File

@@ -196,6 +196,8 @@ void UI::onResize(const ResizeEvent& ev)
if (uiData->resizeInProgress) if (uiData->resizeInProgress)
return; return;


UIWidget::onResize(ev);

const uint width = ev.size.getWidth(); const uint width = ev.size.getWidth();
const uint height = ev.size.getHeight(); const uint height = ev.size.getHeight();




Loading…
Cancel
Save