Only use render-group when container is not opaque
This commit is contained in:
parent
3cb1410318
commit
5ee7941895
@ -58,7 +58,8 @@ Container::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) con
|
|||||||
Item::render_children (area, context);
|
Item::render_children (area, context);
|
||||||
|
|
||||||
if (_render_with_alpha >= 1.0) {
|
if (_render_with_alpha >= 1.0) {
|
||||||
context->pop_group ();
|
context->pop_group_to_source ();
|
||||||
|
context->paint ();
|
||||||
} else if (_render_with_alpha > 0) {
|
} else if (_render_with_alpha > 0) {
|
||||||
context->pop_group_to_source ();
|
context->pop_group_to_source ();
|
||||||
context->paint_with_alpha (_render_with_alpha);
|
context->paint_with_alpha (_render_with_alpha);
|
||||||
@ -76,7 +77,7 @@ Container::compute_bounding_box () const
|
|||||||
void
|
void
|
||||||
Container::set_render_with_alpha (double alpha)
|
Container::set_render_with_alpha (double alpha)
|
||||||
{
|
{
|
||||||
if (alpha == 1.0 && NULL != g_getenv("ARDOUR_NO_OPAQUE_RENDER_GROUP")) {
|
if (alpha >= 1.0 && NULL == g_getenv("ARDOUR_OPAQUE_RENDER_GROUP")) {
|
||||||
alpha = -1; // disable render group when fully opaque
|
alpha = -1; // disable render group when fully opaque
|
||||||
}
|
}
|
||||||
if (_render_with_alpha == alpha) {
|
if (_render_with_alpha == alpha) {
|
||||||
|
Loading…
Reference in New Issue
Block a user