mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove layers dependency from util
This commit is contained in:
parent
fdb8632a5f
commit
8570b22677
8 changed files with 4 additions and 13 deletions
|
@ -1055,7 +1055,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
|
||||
fn device_pixels_per_screen_px(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32> {
|
||||
match opts::get().device_pixels_per_px {
|
||||
Some(device_pixels_per_px) => device_pixels_per_px,
|
||||
Some(device_pixels_per_px) => ScaleFactor::new(device_pixels_per_px),
|
||||
None => match opts::get().output_file {
|
||||
Some(_) => ScaleFactor::new(1.0),
|
||||
None => self.hidpi_factor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue