mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
rustfmt
This commit is contained in:
parent
644addd159
commit
f1b10393c2
10 changed files with 67 additions and 48 deletions
|
@ -307,7 +307,10 @@ where
|
|||
// Cast from `DeviceIndependentPixel` to `DevicePixel`
|
||||
let device_pixel_ratio = coordinates.hidpi_factor.get();
|
||||
let window_size = TypedSize2D::from_untyped(
|
||||
&(opts.initial_window_size.to_f32() / device_pixel_ratio).to_i32().to_untyped());
|
||||
&(opts.initial_window_size.to_f32() / device_pixel_ratio)
|
||||
.to_i32()
|
||||
.to_untyped(),
|
||||
);
|
||||
|
||||
webrender::Renderer::new(
|
||||
window.gl(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue