mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 12:45:45 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ PixFader::on_expose_event (GdkEventExpose* ev)
|
|||
cairo_set_source (cr, pattern);
|
||||
cairo_matrix_init_translate (&matrix, 0, (h - ds));
|
||||
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);
|
||||
|
||||
} else {
|
||||
|
|
@ -222,7 +222,7 @@ PixFader::on_expose_event (GdkEventExpose* ev)
|
|||
cairo_set_source (cr, pattern);
|
||||
cairo_matrix_init_translate (&matrix, w - ds, 0);
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue