From 4518e20a96e0a032f1af4d3c3206bcc765b3e698 Mon Sep 17 00:00:00 2001 From: Valeriy Kamyshniy Date: Tue, 27 May 2014 21:10:22 -0400 Subject: [PATCH] [P4/git history rebuild] ardour button implementation changes (NOTE: includes some confusion about CairoWidget::render() API) --- gtk2_ardour/ardour_button.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index bc10530417..6cf220596f 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -60,7 +60,7 @@ ArdourButton::ArdourButton (Element e) , _text_width (0) , _text_height (0) , _diameter (11.0) - , _corner_radius (4.0) + , _corner_radius (1.0) , _corner_mask (0xf) , _angle(0) , _xalign(.5) @@ -96,7 +96,7 @@ ArdourButton::ArdourButton (const std::string& str, Element e) , _text_width (0) , _text_height (0) , _diameter (11.0) - , _corner_radius (4.0) + , _corner_radius (1.0) , _corner_mask (0xf) , _angle(0) , _xalign(.5) @@ -195,7 +195,7 @@ ArdourButton::set_alignment (const float xa, const float ya) } void -ArdourButton::render (cairo_t* cr, cairo_rectangle_t *) +ArdourButton::render (cairo_t* cr) { void (*rounded_function)(cairo_t*, double, double, double, double, double);