summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/pixfader.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-11 19:26:04 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-11 19:26:04 +0000
commit9ed64a7f6ccb34b0ef600aa3399c678f564cbfee (patch)
tree412adfc830af0f2cf0cd01b17e180f3b107ab422 /libs/gtkmm2ext/pixfader.cc
parentd26a6cb5d9dfa927238e9285d015c0c20335943c (diff)
space pixfader dots better
git-svn-id: svn://localhost/ardour2/branches/3.0@13832 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/pixfader.cc')
-rw-r--r--libs/gtkmm2ext/pixfader.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/pixfader.cc b/libs/gtkmm2ext/pixfader.cc
index d7980503db..f04386ce83 100644
--- a/libs/gtkmm2ext/pixfader.cc
+++ b/libs/gtkmm2ext/pixfader.cc
@@ -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);