use a different approach for indicating expose rects (from robin gareus). #ifdef...
[ardour.git] / gtk2_ardour / ghostregion.cc
index f75982cc768fa0930e8a8f2651ebaa1cf490ef78..da2beeeca7069f378e4c519afb732d1c84fafaa6 100644 (file)
@@ -49,9 +49,9 @@ GhostRegion::GhostRegion (ArdourCanvas::Group* parent, TimeAxisView& tv, TimeAxi
        base_rect = new ArdourCanvas::Rectangle (group);
        CANVAS_DEBUG_NAME (base_rect, "ghost region rect");
        base_rect->set_x0 (0);
-       base_rect->set_y0 (0);
-       base_rect->set_y1 (trackview.current_height());
-       base_rect->set_outline_what (0);
+       base_rect->set_y0 (0.0);
+       base_rect->set_y1 (trackview.current_height() - 1.0);
+       base_rect->set_outline_what (ArdourCanvas::Rectangle::What (0));
 
        if (!is_automation_ghost()) {
                base_rect->hide();