summaryrefslogtreecommitdiff
path: root/gtk2_ardour/streamview.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-11-05 17:12:18 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-11-05 19:45:23 -0500
commit9da7a15c607463c1ce8b83424ca141b73e436b52 (patch)
tree23045cd0860cdbae53d402bba5babbfd0a417c43 /gtk2_ardour/streamview.cc
parentecd618c343d4fc41e95f0c58795271c2ab3b1980 (diff)
streamview no longer outlines any part of its canvas rect (we leave that to time axis view separators)
Also remove commented "- 1.0" adjustments that were already commented
Diffstat (limited to 'gtk2_ardour/streamview.cc')
-rw-r--r--gtk2_ardour/streamview.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/streamview.cc b/gtk2_ardour/streamview.cc
index 5d2b58a5cd..850052163e 100644
--- a/gtk2_ardour/streamview.cc
+++ b/gtk2_ardour/streamview.cc
@@ -71,9 +71,8 @@ StreamView::StreamView (RouteTimeAxisView& tv, ArdourCanvas::Container* canvas_g
canvas_rect = new ArdourCanvas::Rectangle (_canvas_group);
CANVAS_DEBUG_NAME (canvas_rect, string_compose ("SV canvas rectangle %1", _trackview.name()));
- canvas_rect->set (ArdourCanvas::Rect (0, 0, ArdourCanvas::COORD_MAX, tv.current_height () -1));
- canvas_rect->set_outline_what (ArdourCanvas::Rectangle::BOTTOM); // bottom separator
- canvas_rect->set_outline_color (RGBA_TO_UINT (0, 0, 0, 255));
+ canvas_rect->set (ArdourCanvas::Rect (0, 0, ArdourCanvas::COORD_MAX, tv.current_height ()));
+ canvas_rect->set_outline_what (ArdourCanvas::Rectangle::What (0));
canvas_rect->set_fill (true);
canvas_rect->Event.connect (sigc::bind (sigc::mem_fun (_trackview.editor(), &PublicEditor::canvas_stream_view_event), canvas_rect, &_trackview));
@@ -115,16 +114,17 @@ int
StreamView::set_height (double h)
{
/* limit the values to something sane-ish */
+
if (h < 10.0 || h > 1000.0) {
return -1;
}
- if (canvas_rect->y1() == h /* -1 */) {
+ if (canvas_rect->y1() == h) {
return 0;
}
height = h;
- canvas_rect->set_y1 (height /* -1 */); // share the separator with outline
+ canvas_rect->set_y1 (height);
update_contents_height ();
return 0;