From f377822891d314f88d3eaccf5525d245785ac906 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 24 Jan 2023 10:01:04 -0700 Subject: [PATCH] (temporarily) add nodraw bitflag to avoid gradient fills --- libs/canvas/rectangle.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/canvas/rectangle.cc b/libs/canvas/rectangle.cc index 20ea629519..e71eacf553 100644 --- a/libs/canvas/rectangle.cc +++ b/libs/canvas/rectangle.cc @@ -101,7 +101,11 @@ Rectangle::render (Rect const & area, Cairo::RefPtr context) con if (_stops.empty()) { setup_fill_context (context); } else { - setup_gradient_context (context, self, Duple (draw.x0, draw.y0)); + if (ArdourCanvas::nodraw & 0x80) { + setup_fill_context (context); + } else { + setup_gradient_context (context, self, Duple (draw.x0, draw.y0)); + } } if (_corner_radius) {