diff --git a/source/backend/engine/CarlaEngineNative.cpp b/source/backend/engine/CarlaEngineNative.cpp index 2547bb6ee..249eff411 100644 --- a/source/backend/engine/CarlaEngineNative.cpp +++ b/source/backend/engine/CarlaEngineNative.cpp @@ -351,6 +351,14 @@ public: pHost->ui_closed(pHost->handle); break; + case ENGINE_CALLBACK_EMBED_UI_RESIZED: + if (sendHost && fUsesEmbed) + pHost->dispatcher(pHost->handle, + NATIVE_HOST_OPCODE_UI_RESIZE, + value1, value2, + nullptr, 0.0f); + break; + default: break; } @@ -1391,11 +1399,13 @@ protected: if (carla_isNotEqual(fLastScaleFactor, pData->options.uiScale)) { fLastScaleFactor = pData->options.uiScale; - pHost->dispatcher(pHost->handle, - NATIVE_HOST_OPCODE_UI_RESIZE, - static_cast(kUiWidth * fLastScaleFactor + 0.5f), - static_cast(kUiHeight * fLastScaleFactor + 0.5f), - nullptr, 0.0f); + + if (! fUsesEmbed) + pHost->dispatcher(pHost->handle, + NATIVE_HOST_OPCODE_UI_RESIZE, + static_cast(kUiWidth * fLastScaleFactor + 0.5f), + static_cast(kUiHeight * fLastScaleFactor + 0.5f), + nullptr, 0.0f); } {