mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
use window-based coordinates when picking current item so that we get per-item (per-scroll-group,really) computation of position and coverage.
This commit is contained in:
parent
54a56cd3c6
commit
073df89c4d
10 changed files with 39 additions and 22 deletions
|
|
@ -126,7 +126,7 @@ Arc::set_start (double deg)
|
|||
bool
|
||||
Arc::covers (Duple const & point) const
|
||||
{
|
||||
Duple p = canvas_to_item (point);
|
||||
Duple p = window_to_item (point);
|
||||
|
||||
double angle_degs = atan (p.y/p.x) * 2.0 * M_PI;
|
||||
double radius = sqrt (p.x * p.x + p.y * p.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue