mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
correct implementation for Rectangle::vertical_fraction()
This commit is contained in:
parent
59ce8663f9
commit
38728f0835
1 changed files with 4 additions and 1 deletions
|
|
@ -284,5 +284,8 @@ Rectangle::vertical_fraction (double y) const
|
|||
return 0;
|
||||
}
|
||||
|
||||
return (i.y - bbox.y0) / bbox.height();
|
||||
/* convert to fit Cairo origin model (origin at upper left)
|
||||
*/
|
||||
|
||||
return 1.0 - ((i.y - bbox.y0) / bbox.height());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue