mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
auto merge of #3549 : pcwalton/servo/fix-float-to-fixed, r=zwarich
Improves text rendering a lot. r? @zwarich
This commit is contained in:
commit
622a6fb113
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ pub fn transform_text(text: &str, mode: CompressionMode,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn float_to_fixed(before: int, f: f64) -> i32 {
|
pub fn float_to_fixed(before: int, f: f64) -> i32 {
|
||||||
(1i32 << before as uint) * (f as i32)
|
((1i32 << before as uint) as f64 * f) as i32
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fixed_to_float(before: int, f: i32) -> f64 {
|
pub fn fixed_to_float(before: int, f: i32) -> f64 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue