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:
parent
2b58d51e50
commit
db026c5ae4
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user