summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-06-01 03:06:14 +0200
committerRobin Gareus <robin@gareus.org>2016-06-01 03:06:14 +0200
commit761ce9c914808bbc53d92647f9024027d0b6be98 (patch)
tree5db662c9fa1a07e65802df845cd17383c8cea72a /libs/gtkmm2ext
parentb4b106014edf3de98f510a9abdf408364010e709 (diff)
allow StripWidth icon to draw properly on non-square buttons
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r--libs/gtkmm2ext/ardour_icon.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/gtkmm2ext/ardour_icon.cc b/libs/gtkmm2ext/ardour_icon.cc
index fce6ab6db0..6a7cabe829 100644
--- a/libs/gtkmm2ext/ardour_icon.cc
+++ b/libs/gtkmm2ext/ardour_icon.cc
@@ -912,15 +912,15 @@ static void icon_strip_width (cairo_t *cr, const int width, const int height, co
const double x1 = width * .8;
const double y0 = height * .25;
- const double y1= height * .75;
+ const double y1 = height * .75;
- const double ym= height * .5;
+ const double ym = height * .5;
// arrow
- const double xa0= height * .39;
- const double xa1= height * .61;
- const double ya0= height * .35;
- const double ya1= height * .65;
+ const double xa0= width * .39;
+ const double xa1= width * .61;
+ const double ya0= height * .35;
+ const double ya1= height * .65;
ardour_icon_set_source_rgba (cr, fg_color);
cairo_set_line_width (cr, 1);