Start the constellation with the correct pixel ratio

This may mitigate race conditions like #7730.
This commit is contained in:
Matt Brubeck 2015-09-30 16:52:02 -07:00
parent b024fdab33
commit a604b360da

View file

@ -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 {