diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-03 20:01:11 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-03 20:48:20 +0200 |
commit | f2c0b2e3185c4a45953a3c58e907763d6d988890 (patch) | |
tree | c100f0aef24d6a89dbc8d7bc8a03c23283950ad3 /libs | |
parent | beb5e3e777b0e92e8dde7ee12c324b32c679ff63 (diff) |
revert pixfader to sane state (reverts parts of bb70d426)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gtkmm2ext/pixfader.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/pixfader.cc b/libs/gtkmm2ext/pixfader.cc index d0271cc700..c7cc85193e 100644 --- a/libs/gtkmm2ext/pixfader.cc +++ b/libs/gtkmm2ext/pixfader.cc @@ -234,11 +234,10 @@ PixFader::on_expose_event (GdkEventExpose* ev) cairo_set_source_rgba (cr, 0, 0, 0, 1.0); cairo_matrix_t matrix; - Gtkmm2ext::rounded_rectangle (cr, CORNER_OFFSET, CORNER_OFFSET, w-CORNER_SIZE, h-CORNER_SIZE, CORNER_RADIUS + 1.5); + Gtkmm2ext::rounded_rectangle (cr, CORNER_OFFSET, CORNER_OFFSET, w-CORNER_SIZE, h-CORNER_SIZE, CORNER_RADIUS); // we use a 'trick' here: The stoke is off by .5px but filling the interior area // after a stroke of 2px width results in an outline of 1px - cairo_stroke (cr); - Gtkmm2ext::rounded_rectangle (cr, CORNER_OFFSET, CORNER_OFFSET, w-CORNER_SIZE, h-CORNER_SIZE, CORNER_RADIUS); + cairo_stroke_preserve(cr); if (_orien == VERT) { |