mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
space pixfader dots better
git-svn-id: svn://localhost/ardour2/branches/3.0@13832 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d26a6cb5d9
commit
9ed64a7f6c
1 changed files with 3 additions and 3 deletions
|
|
@ -84,7 +84,7 @@ PixFader::create_patterns ()
|
|||
|
||||
cairo_surface_t* texture_surface;
|
||||
cairo_t* tc = 0;
|
||||
const double texture_margin = 3.0;
|
||||
const double texture_margin = 4.0;
|
||||
|
||||
if (_orien == VERT) {
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ PixFader::create_patterns ()
|
|||
texture_surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, girth, 6);
|
||||
tc = cairo_create (texture_surface);
|
||||
|
||||
for (double x = texture_margin; x < girth - texture_margin; x += 3.0) {
|
||||
for (double x = texture_margin; x < girth - texture_margin; x += 4.0) {
|
||||
cairo_set_source_rgba (tc, 0.533, 0.533, 0.580, 1.0);
|
||||
cairo_rectangle (tc, x, 2, 2, 2);
|
||||
cairo_fill (tc);
|
||||
|
|
@ -116,7 +116,7 @@ PixFader::create_patterns ()
|
|||
cairo_pattern_add_color_stop_rgba (pattern, 1, r*0.6,g*0.6,b*0.6, 1.0);
|
||||
|
||||
if (girth > 10) {
|
||||
for (double y = texture_margin; y < girth - texture_margin; y += 3) {
|
||||
for (double y = texture_margin; y < girth - texture_margin; y += 4.0) {
|
||||
cairo_set_source_rgba (tc, 0.533, 0.533, 0.580, 1.0);
|
||||
cairo_rectangle (tc, 0, y, 2, 2);
|
||||
cairo_fill (tc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue