DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit a06479325ea510f4df80ffe3c0981d4bf8bf3feb
parent b71a32c9a86aaa0207dad0f8460833dd2cf4327f
Author: falkTX <falktx@falktx.com>
Date:   Sat, 15 May 2021 16:32:18 +0100

Fix missing UIWidget::onResize handler

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/DistrhoInfo.hpp | 1+
Mdistrho/src/DistrhoUI.cpp | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/distrho/DistrhoInfo.hpp b/distrho/DistrhoInfo.hpp @@ -562,6 +562,7 @@ START_NAMESPACE_DISTRHO @see Plugin::getTimePosition() */ #define DISTRHO_PLUGIN_WANT_TIMEPOS 1 + /** 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. diff --git a/distrho/src/DistrhoUI.cpp b/distrho/src/DistrhoUI.cpp @@ -196,6 +196,8 @@ void UI::onResize(const ResizeEvent& ev) if (uiData->resizeInProgress) return; + UIWidget::onResize(ev); + const uint width = ev.size.getWidth(); const uint height = ev.size.getHeight();