mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 14:16:31 +01:00
correct implementation for Rectangle::vertical_fraction()
This commit is contained in:
parent
5ffa87b8ad
commit
4911ce6db0
1 changed files with 4 additions and 1 deletions
|
|
@ -243,5 +243,8 @@ Rectangle::vertical_fraction (double y) const
|
||||||
return 0;
|
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