mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +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
|
@ -12,13 +12,13 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
azure = {git = "https://github.com/servo/rust-azure", features = ["plugins"]}
|
||||
canvas_traits = {path = "../canvas_traits"}
|
||||
euclid = "0.9"
|
||||
euclid = "0.10.1"
|
||||
gfx_traits = {path = "../gfx_traits"}
|
||||
gleam = "0.2.8"
|
||||
ipc-channel = "0.5"
|
||||
log = "0.3.5"
|
||||
num-traits = "0.1.32"
|
||||
offscreen_gl_context = "0.3"
|
||||
offscreen_gl_context = "0.4"
|
||||
plugins = {path = "../plugins"}
|
||||
util = {path = "../util"}
|
||||
|
||||
|
|
|
@ -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