mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Replace some Point2D::new(0, 0)
instances with Point2D::zero()
(#33783)
Signed-off-by: hackerbirds <120066692+hackerbirds@users.noreply.github.com>
This commit is contained in:
parent
b58cee48ce
commit
1668b12ded
4 changed files with 5 additions and 5 deletions
|
@ -80,7 +80,7 @@ pub fn view<Eye>(view: &FakeXRViewInit) -> Fallible<MockViewInit<Eye>> {
|
|||
let size = Size2D::new(view.resolution.width, view.resolution.height);
|
||||
let origin = match view.eye {
|
||||
XREye::Right => Point2D::new(size.width, 0),
|
||||
_ => Point2D::new(0, 0),
|
||||
_ => Point2D::zero(),
|
||||
};
|
||||
let viewport = Rect::new(origin, size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue