diff --git a/Source/Objects/GraphOnParent.h b/Source/Objects/GraphOnParent.h index e9b4b6d340..9c42f10b6c 100644 --- a/Source/Objects/GraphOnParent.h +++ b/Source/Objects/GraphOnParent.h @@ -252,11 +252,7 @@ class GraphOnParent final : public ObjectBase { auto selectedOutlineColour = convertColour(cnv->editor->getLookAndFeel().findColour(PlugDataColour::objectSelectedOutlineColourId)); auto outlineColour = convertColour(cnv->editor->getLookAndFeel().findColour(PlugDataColour::objectOutlineColourId)); - nvgBeginPath(nvg); - nvgRoundedRect(nvg, b.getX(), b.getY(), b.getWidth() - 0.5f, b.getHeight() - 0.5f, Corners::objectCornerRadius); - nvgStrokeColor(nvg, object->isSelected() ? selectedOutlineColour : outlineColour); - nvgStrokeWidth(nvg, 1.0f); - nvgStroke(nvg); + nvgDrawRoundedRect(nvg, b.getX(), b.getY(), b.getWidth(), b.getHeight(), nvgRGBAf(0, 0, 0, 0), object->isSelected() ? selectedOutlineColour : outlineColour, Corners::objectCornerRadius); if (isOpenedInSplitView) { nvgFillColor(nvg, convertColour(cnv->editor->getLookAndFeel().findColour(PlugDataColour::guiObjectBackgroundColourId))); diff --git a/Source/Objects/SymbolAtomObject.h b/Source/Objects/SymbolAtomObject.h index 5dcb615adc..71ba3973a4 100644 --- a/Source/Objects/SymbolAtomObject.h +++ b/Source/Objects/SymbolAtomObject.h @@ -150,7 +150,7 @@ class SymbolAtomObject final : public ObjectBase bool highlighted = hasKeyboardFocus(true) && ::getValue(object->locked); nvgSave(nvg); - nvgRoundedScissor(nvg, sb.getX(), sb.getY(), sb.getWidth(), sb.getHeight(), Corners::objectCornerRadius); + nvgIntersectRoundedScissor(nvg, sb.getX(), sb.getY(), sb.getWidth(), sb.getHeight(), Corners::objectCornerRadius); // Background nvgBeginPath(nvg);