Update to latest carla, dpf, and pugl, needs testing

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-05-28 03:06:41 +01:00
parent 11d9d6a0be
commit bcd1b9e273
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
7 changed files with 19 additions and 30 deletions

View file

@ -47,17 +47,8 @@ GLFWAPI const char* glfwGetClipboardString(GLFWwindow*)
DISTRHO_SAFE_ASSERT_RETURN(context != nullptr, nullptr);
DISTRHO_SAFE_ASSERT_RETURN(context->ui != nullptr, nullptr);
const char* mimeType = nullptr;
size_t dataSize = 0;
if (const void* const clipboard = context->ui->getClipboard(mimeType, dataSize))
{
if (mimeType == nullptr || std::strcmp(mimeType, "text/plain") != 0)
return nullptr;
return static_cast<const char*>(clipboard);
}
return nullptr;
size_t dataSize;
return static_cast<const char*>(context->ui->getClipboard(dataSize));
}
GLFWAPI void glfwSetClipboardString(GLFWwindow*, const char* const text)
@ -268,7 +259,6 @@ class CardinalUI : public CardinalBaseUI,
{
if (context->window != nullptr)
WindowParametersSave(context->window);
rack::contextSet(nullptr);
}
};
@ -619,13 +609,8 @@ protected:
switch (ev.button)
{
case 1: button = GLFW_MOUSE_BUTTON_LEFT; break;
#ifdef DISTRHO_OS_MAC
case 2: button = GLFW_MOUSE_BUTTON_RIGHT; break;
case 3: button = GLFW_MOUSE_BUTTON_MIDDLE; break;
#else
case 2: button = GLFW_MOUSE_BUTTON_MIDDLE; break;
case 3: button = GLFW_MOUSE_BUTTON_RIGHT; break;
#endif
default:
button = ev.button;
break;
@ -778,6 +763,17 @@ protected:
setState("windowSize", sizeString);
}
uint32_t uiClipboardDataOffer() override
{
const std::vector<ClipboardDataOffer> offers(getClipboardDataOfferTypes());
for (const ClipboardDataOffer offer : offers)
if (std::strcmp(offer.type, "text/plain") == 0)
return offer.id;
return 0;
}
void uiFocus(const bool focus, const CrossingMode mode) override
{
if (focus)

View file

@ -38,9 +38,6 @@ CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/carla_engine_
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/carla_plugin.a
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/native-plugins.a
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/audio_decoder.a
ifneq ($(HEADLESS),true)
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/dgl.a
endif
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/jackbridge.min.a
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/lilv.a
CARLA_EXTRA_LIBS += $(CARLA_BUILD_DIR)/modules/$(CARLA_BUILD_TYPE)/rtmempool.a