mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix arithmetic error in au::from_pt().
This commit is contained in:
parent
54f1e83844
commit
ec9cbeb150
1 changed files with 1 additions and 1 deletions
|
@ -72,5 +72,5 @@ pub pure fn to_px(au: au) -> int {
|
|||
|
||||
// assumes 72 points per inch, and 96 px per inch
|
||||
pub pure fn from_pt(f: float) -> au {
|
||||
from_int((f * 96f / 72f) as int)
|
||||
from_px((f / 72f * 96f) as int)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue