diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-17 22:45:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-17 22:45:08 +0200 |
commit | d51a1ec06b707ad1000bb770afeabfe0987a747b (patch) | |
tree | 8537676a9e7a5c56c2411e9bf336e23c2c5c6ece | |
parent | a8a4c1858c36286890c20fec18029b3bc94bbb66 (diff) |
add a stripe-pattern to the meters
-rw-r--r-- | libs/gtkmm2ext/fastmeter.cc | 12 |
1 files changed, 12 insertions, 0 deletions
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); |