Fix build warnings.

This commit is contained in:
Ms2ger 2015-07-04 14:33:18 +02:00
parent 0298c92670
commit d4888dbd4d
7 changed files with 8 additions and 10 deletions

View file

@ -1163,7 +1163,7 @@ impl FragmentDisplayListBuilding for Fragment {
for operation in operations {
let matrix = match operation {
&transform::ComputedOperation::Rotate(ax, ay, az, theta) => {
let theta = f32::consts::PI_2 - theta.radians();
let theta = 2.0f32 * f32::consts::PI - theta.radians();
Matrix4::create_rotation(ax, ay, az, theta)
}
&transform::ComputedOperation::Perspective(d) => {