mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
(temporarily) add nodraw bitflag to avoid gradient fills
This commit is contained in:
parent
220c319bf0
commit
f377822891
1 changed files with 5 additions and 1 deletions
|
|
@ -100,9 +100,13 @@ Rectangle::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
|
||||||
if (_fill && !_transparent) {
|
if (_fill && !_transparent) {
|
||||||
if (_stops.empty()) {
|
if (_stops.empty()) {
|
||||||
setup_fill_context (context);
|
setup_fill_context (context);
|
||||||
|
} else {
|
||||||
|
if (ArdourCanvas::nodraw & 0x80) {
|
||||||
|
setup_fill_context (context);
|
||||||
} else {
|
} else {
|
||||||
setup_gradient_context (context, self, Duple (draw.x0, draw.y0));
|
setup_gradient_context (context, self, Duple (draw.x0, draw.y0));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (_corner_radius) {
|
if (_corner_radius) {
|
||||||
Gtkmm2ext::rounded_rectangle (context, draw.x0, draw.y0, draw.width(), draw.height(), _corner_radius);
|
Gtkmm2ext::rounded_rectangle (context, draw.x0, draw.y0, draw.width(), draw.height(), _corner_radius);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue