13
0

round outside corners of pixfaders

git-svn-id: svn://localhost/ardour2/branches/3.0@13834 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2013-01-12 02:14:58 +00:00
parent 2b58d51e50
commit db026c5ae4

View File

@ -198,7 +198,7 @@ PixFader::on_expose_event (GdkEventExpose* ev)
cairo_set_source (cr, pattern); cairo_set_source (cr, pattern);
cairo_matrix_init_translate (&matrix, 0, (h - ds)); cairo_matrix_init_translate (&matrix, 0, (h - ds));
cairo_pattern_set_matrix (pattern, &matrix); cairo_pattern_set_matrix (pattern, &matrix);
cairo_rectangle (cr, 0, 0, w, h); Gtkmm2ext::rounded_rectangle (cr, 0, 0, w, h, CORNER_RADIUS-1.5);
cairo_fill (cr); cairo_fill (cr);
} else { } else {
@ -222,7 +222,7 @@ PixFader::on_expose_event (GdkEventExpose* ev)
cairo_set_source (cr, pattern); cairo_set_source (cr, pattern);
cairo_matrix_init_translate (&matrix, w - ds, 0); cairo_matrix_init_translate (&matrix, w - ds, 0);
cairo_pattern_set_matrix (pattern, &matrix); cairo_pattern_set_matrix (pattern, &matrix);
cairo_rectangle (cr, 0, 0, w, h); Gtkmm2ext::rounded_rectangle (cr, 0, 0, w, h, CORNER_RADIUS-1.5);
cairo_fill (cr); cairo_fill (cr);
} }