Jumped the gun on pushing; one more readability update :P
This commit is contained in:
parent
fd5e1e5ab0
commit
7a124476b1
1 changed files with 3 additions and 3 deletions
|
|
@ -50,11 +50,11 @@ impl Transform {
|
||||||
&self,
|
&self,
|
||||||
mut gradient: Gradient,
|
mut gradient: Gradient,
|
||||||
) -> Gradient {
|
) -> Gradient {
|
||||||
let coords = match &mut gradient {
|
let (start, end) = match &mut gradient {
|
||||||
Gradient::Linear(linear) => (&mut linear.start, &mut linear.end),
|
Gradient::Linear(linear) => (&mut linear.start, &mut linear.end),
|
||||||
};
|
};
|
||||||
self.transform_point(coords.0);
|
self.transform_point(start);
|
||||||
self.transform_point(coords.1);
|
self.transform_point(end);
|
||||||
gradient
|
gradient
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue