diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-10 02:48:14 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-10 02:48:14 +0100 |
commit | 23762ed22537a586e0f4818c242c7cbd90204289 (patch) | |
tree | d6c60dec8d4e217085f6486fdb5c6c865eb09859 /gtk2_ardour/shuttle_control.cc | |
parent | 8de9ee32a288d46ba958b60f18c158ebbe2252ff (diff) |
circles and circles and circles, again my friend
escape the cairo vicious circle, fixes varispeed playback
& major CPU hog on OSX.
Diffstat (limited to 'gtk2_ardour/shuttle_control.cc')
-rw-r--r-- | gtk2_ardour/shuttle_control.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/shuttle_control.cc b/gtk2_ardour/shuttle_control.cc index 5eacf3c93b..decff696dd 100644 --- a/gtk2_ardour/shuttle_control.cc +++ b/gtk2_ardour/shuttle_control.cc @@ -545,7 +545,7 @@ ShuttleControl::render (cairo_t* cr, cairo_rectangle_t*) } else if ( speed ==0.0 ) rounded_rectangle (cr, offset, 4, marker_size-2, marker_size-2, 1); else - cairo_arc (cr, offset + marker_size*0.5, 2 + marker_size*0.5, marker_size*0.5, 0, 360); + cairo_arc (cr, offset + marker_size*0.5, 2 + marker_size*0.5, marker_size*0.5, 0, 2. * M_PI); cairo_set_line_width (cr, 2); cairo_stroke (cr); |