From 3324882fe0350de41137d62b38492a7ab342bde4 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 27 Dec 2021 09:19:51 -0600 Subject: [PATCH] pixel-pushing: remove horizontal divider lines --- gtk2_ardour/cuebox_ui.cc | 8 -------- gtk2_ardour/trigger_master.cc | 16 ---------------- gtk2_ardour/triggerbox_ui.cc | 8 -------- 3 files changed, 32 deletions(-) diff --git a/gtk2_ardour/cuebox_ui.cc b/gtk2_ardour/cuebox_ui.cc index 0b108539b1..13d66c78d5 100644 --- a/gtk2_ardour/cuebox_ui.cc +++ b/gtk2_ardour/cuebox_ui.cc @@ -182,14 +182,6 @@ CueEntry::render (ArdourCanvas::Rect const& area, Cairo::RefPtr context->set_source (drop_shadow_pattern); context->rectangle (0, 0, width, 6 * scale); context->fill (); - } else if (_cue_idx % 2 == 0) { - /* line at top */ - context->set_identity_matrix (); - context->translate (self.x0, self.y0 - 0.5); - set_source_rgba (context, rgba_to_color (0, 0, 0, 1)); - context->rectangle (0, 0, width, 1.); - context->fill (); - context->set_identity_matrix (); } } diff --git a/gtk2_ardour/trigger_master.cc b/gtk2_ardour/trigger_master.cc index 128139cd2a..8ef47fb663 100644 --- a/gtk2_ardour/trigger_master.cc +++ b/gtk2_ardour/trigger_master.cc @@ -270,14 +270,6 @@ TriggerMaster::render (ArdourCanvas::Rect const& area, Cairo::RefPtrset_source (drop_shadow_pattern); context->rectangle (0, 0, width, 6 * scale); context->fill (); - } else { - /* line at top */ - context->set_identity_matrix (); - context->translate (self.x0, self.y0 - 0.5); - set_source_rgba (context, rgba_to_color (0, 0, 0, 1)); - context->rectangle (0, 0, width, 1.); - context->fill (); - context->set_identity_matrix (); } } @@ -611,14 +603,6 @@ CueMaster::render (ArdourCanvas::Rect const& area, Cairo::RefPtr context->set_source (drop_shadow_pattern); context->rectangle (0, 0, width, 6 * scale); context->fill (); - } else { - /* line at top */ - context->set_identity_matrix (); - context->translate (self.x0, self.y0 - 0.5); - set_source_rgba (context, rgba_to_color (0, 0, 0, 1)); - context->rectangle (0, 0, width, 1.); - context->fill (); - context->set_identity_matrix (); } } diff --git a/gtk2_ardour/triggerbox_ui.cc b/gtk2_ardour/triggerbox_ui.cc index 3efc1ca7c4..ef8fb80072 100644 --- a/gtk2_ardour/triggerbox_ui.cc +++ b/gtk2_ardour/triggerbox_ui.cc @@ -376,14 +376,6 @@ TriggerEntry::render (ArdourCanvas::Rect const& area, Cairo::RefPtrset_source (drop_shadow_pattern); context->rectangle (0, 0, width, 6 * scale); context->fill (); - } else if (tref.slot % 2 == 0) { - /* line at top */ - context->set_identity_matrix (); - context->translate (self.x0, self.y0 - 0.5); - set_source_rgba (context, rgba_to_color (0, 0, 0, 1)); - context->rectangle (0, 0, width, 1); - context->fill (); - context->set_identity_matrix (); } /* launch icon */