auto merge of #3549 : pcwalton/servo/fix-float-to-fixed, r=zwarich

Improves text rendering a lot.

r? @zwarich
This commit is contained in:
bors-servo 2014-10-01 23:18:23 -06:00
commit 622a6fb113

View file

@ -110,7 +110,7 @@ pub fn transform_text(text: &str, mode: CompressionMode,
}
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 {