From 1c94f6490e3f0bd4b35a001a9a530cee752100b0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 25 Sep 2016 16:44:20 -0500 Subject: [PATCH] bug fixes for vertically-drawn Canvas::Meter --- libs/canvas/meter.cc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/libs/canvas/meter.cc b/libs/canvas/meter.cc index d71370ad48..8d91e49d3e 100644 --- a/libs/canvas/meter.cc +++ b/libs/canvas/meter.cc @@ -505,10 +505,13 @@ Meter::vertical_expose (ArdourCanvas::Rect const & area, Cairo::RefPtrset_source_rgb (0, 0, 0); // black rounded_rectangle (context, 0, 0, pixwidth + 2, pixheight + 2, 2); @@ -537,8 +540,8 @@ Meter::vertical_expose (ArdourCanvas::Rect const & area, Cairo::RefPtrempty()) { Cairo::RectangleInt i (r1->get_extents ()); - context->rectangle (i.x, i.y, i.width, i.height); context->set_source (bgpattern); + context->rectangle (i.x, i.y, i.width, i.height); context->fill (); } @@ -548,8 +551,8 @@ Meter::vertical_expose (ArdourCanvas::Rect const & area, Cairo::RefPtrempty()) { // draw the part of the meter image that we need. the area we draw is bounded "in reverse" (top->bottom) Cairo::RectangleInt i (r2->get_extents ()); - context->rectangle (i.x, i.y, i.width, i.height); context->set_source (fgpattern); + context->rectangle (i.x, i.y, i.width, i.height); context->fill (); } @@ -595,7 +598,6 @@ Meter::horizontal_expose (ArdourCanvas::Rect const & area, Cairo::RefPtr