Fix resize recursion when triggered via host
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
da61999de5
commit
7860e6e539
2 changed files with 7 additions and 1 deletions
|
@ -46,6 +46,7 @@ namespace app {
|
|||
namespace window {
|
||||
void WindowSetPluginUI(Window* window, DISTRHO_NAMESPACE::UI* ui);
|
||||
void WindowSetMods(Window* window, int mods);
|
||||
void WindowSetInternalSize(rack::window::Window* window, math::Vec size);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -610,7 +611,7 @@ protected:
|
|||
UI::onResize(ev);
|
||||
|
||||
if (context->window != nullptr)
|
||||
context->window->setSize(rack::math::Vec(ev.size.getWidth(), ev.size.getHeight()));
|
||||
WindowSetInternalSize(context->window, rack::math::Vec(ev.size.getWidth(), ev.size.getHeight()));
|
||||
|
||||
const double scaleFactor = getScaleFactor();
|
||||
char sizeString[64];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue