mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Mini-timeline, use explicit cairo-group to consolidate rendering
This commit is contained in:
parent
5ff28f9ab7
commit
c59c46a70a
1 changed files with 7 additions and 1 deletions
|
|
@ -57,7 +57,6 @@ MiniTimeline::MiniTimeline ()
|
||||||
{
|
{
|
||||||
add_events (Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK|Gdk::BUTTON_RELEASE_MASK|Gdk::BUTTON_PRESS_MASK|Gdk::POINTER_MOTION_MASK|Gdk::SCROLL_MASK);
|
add_events (Gdk::ENTER_NOTIFY_MASK|Gdk::LEAVE_NOTIFY_MASK|Gdk::BUTTON_RELEASE_MASK|Gdk::BUTTON_PRESS_MASK|Gdk::POINTER_MOTION_MASK|Gdk::SCROLL_MASK);
|
||||||
|
|
||||||
use_intermediate_surface ();
|
|
||||||
_layout = Pango::Layout::create (get_pango_context());
|
_layout = Pango::Layout::create (get_pango_context());
|
||||||
|
|
||||||
UIConfiguration::instance().ColorsChanged.connect (sigc::mem_fun (*this, &MiniTimeline::set_colors));
|
UIConfiguration::instance().ColorsChanged.connect (sigc::mem_fun (*this, &MiniTimeline::set_colors));
|
||||||
|
|
@ -510,6 +509,8 @@ MiniTimeline::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cairo_push_group (cr);
|
||||||
|
|
||||||
const int width = get_width ();
|
const int width = get_width ();
|
||||||
const int height = get_height ();
|
const int height = get_height ();
|
||||||
|
|
||||||
|
|
@ -521,6 +522,8 @@ MiniTimeline::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_
|
||||||
cairo_clip (cr);
|
cairo_clip (cr);
|
||||||
|
|
||||||
if (_session == 0) {
|
if (_session == 0) {
|
||||||
|
cairo_pop_group_to_source (cr);
|
||||||
|
cairo_paint (cr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -662,6 +665,9 @@ MiniTimeline::render (Cairo::RefPtr<Cairo::Context> const& ctx, cairo_rectangle_
|
||||||
cairo_rel_line_to (cr, 3, 4);
|
cairo_rel_line_to (cr, 3, 4);
|
||||||
cairo_close_path (cr);
|
cairo_close_path (cr);
|
||||||
cairo_fill (cr);
|
cairo_fill (cr);
|
||||||
|
|
||||||
|
cairo_pop_group_to_source (cr);
|
||||||
|
cairo_paint (cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue