From d51a1ec06b707ad1000bb770afeabfe0987a747b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 17 Jul 2013 22:45:08 +0200 Subject: add a stripe-pattern to the meters --- libs/gtkmm2ext/fastmeter.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libs/gtkmm2ext/fastmeter.cc b/libs/gtkmm2ext/fastmeter.cc index 6ea1a6dd4b..817b11ff6c 100644 --- a/libs/gtkmm2ext/fastmeter.cc +++ b/libs/gtkmm2ext/fastmeter.cc @@ -189,6 +189,18 @@ FastMeter::generate_meter_pattern ( cairo_set_source (tc, pat); cairo_rectangle (tc, 0, 0, width, height); cairo_fill (tc); + + cairo_save (tc); + cairo_set_line_width(tc, 1.0); + cairo_set_source_rgba(tc, .1, .1, .1, .5); + //cairo_set_operator (tc, CAIRO_OPERATOR_SOURCE); + for (float y=.5; y < height; y+= 2.0) { + cairo_move_to(tc, 0, y); + cairo_line_to(tc, width, y); + cairo_stroke (tc); + } + cairo_restore (tc); + cairo_set_source (tc, shade_pattern); cairo_rectangle (tc, 0, 0, width, height); cairo_fill (tc); -- cgit v1.2.3