Added scale_factor to Screenshot data for use when cropping to widget bounds
This commit is contained in:
parent
663a081bdd
commit
647761ad56
3 changed files with 15 additions and 3 deletions
|
|
@ -1066,6 +1066,7 @@ pub fn run_command<A, C, E>(
|
|||
proxy.send(tag(window::Screenshot::new(
|
||||
bytes,
|
||||
state.physical_size(),
|
||||
state.viewport().scale_factor(),
|
||||
)));
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1239,6 +1239,7 @@ fn run_command<A, C, E>(
|
|||
proxy.send(tag(window::Screenshot::new(
|
||||
bytes,
|
||||
window.state.physical_size(),
|
||||
window.state.viewport().scale_factor(),
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue