diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-13 10:56:46 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-13 12:22:39 -0400 |
commit | 50fea864dbbba2a6be3ddf3346afce5d1778902e (patch) | |
tree | ea73f3049ce554f3dcdd3b852a7323fb72d83e44 /gtk2_ardour/region_view.cc | |
parent | a50569e7870bed622537aeb137501e82e3d57e61 (diff) |
rationalize and coordinate handle of region (time axis view item) opacity.
There are still some bugs with this because of the waveview image cache - fixes coming soon.
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r-- | gtk2_ardour/region_view.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc index 86eb373797..aee25b2e01 100644 --- a/gtk2_ardour/region_view.cc +++ b/gtk2_ardour/region_view.cc @@ -519,6 +519,18 @@ RegionView::set_duration (framecnt_t frames, void *src) return true; } +uint32_t +RegionView::fill_opacity () const +{ + if (!_region->opaque()) { + return 60; + } + + uint32_t normal_tavi_opacity = TimeAxisViewItem::fill_opacity (); + + return normal_tavi_opacity; +} + void RegionView::set_colors () { @@ -534,14 +546,6 @@ RegionView::set_colors () void RegionView::set_frame_color () { - if (!frame) { - return; - } - - if (!_region->opaque()) { - fill_opacity = 60; - } - TimeAxisViewItem::set_frame_color (); } |