mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update euclid to 0.10.1
This commit is contained in:
parent
8a75810eba
commit
51768844ed
37 changed files with 281 additions and 280 deletions
|
@ -683,9 +683,10 @@ impl<'a> CanvasPaintThread<'a> {
|
|||
let draw_target = self.drawtarget.create_similar_draw_target(&Size2D::new(source_rect.size.width as i32,
|
||||
source_rect.size.height as i32),
|
||||
self.drawtarget.get_format());
|
||||
let matrix = Matrix2D::identity().translate(-source_rect.origin.x as AzFloat,
|
||||
-source_rect.origin.y as AzFloat)
|
||||
.mul(&self.state.transform);
|
||||
let matrix = Matrix2D::identity()
|
||||
.pre_translated(-source_rect.origin.x as AzFloat,
|
||||
-source_rect.origin.y as AzFloat)
|
||||
.pre_mul(&self.state.transform);
|
||||
draw_target.set_transform(&matrix);
|
||||
draw_target
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue