mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fix build warnings.
This commit is contained in:
parent
0298c92670
commit
d4888dbd4d
7 changed files with 8 additions and 10 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue