mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Start the constellation with the correct pixel ratio
This may mitigate race conditions like #7730.
This commit is contained in:
parent
b024fdab33
commit
a604b360da
1 changed files with 2 additions and 1 deletions
|
@ -271,7 +271,8 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> {
|
|||
ScaleFactor::new(1.0),
|
||||
initial_viewport: opts::get().initial_window_size.as_f32() *
|
||||
ScaleFactor::new(1.0),
|
||||
device_pixel_ratio: ScaleFactor::new(1.0),
|
||||
device_pixel_ratio:
|
||||
ScaleFactor::new(opts::get().device_pixels_per_px.unwrap_or(1.0)),
|
||||
},
|
||||
phantom: PhantomData,
|
||||
clipboard_ctx: if state.supports_clipboard {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue