Added scale_factor to Screenshot data for use when cropping to widget bounds

This commit is contained in:
Shan 2024-05-24 19:46:18 -07:00
parent 663a081bdd
commit 647761ad56
No known key found for this signature in database
GPG key ID: 5F84D2AA40A9F170
3 changed files with 15 additions and 3 deletions

View file

@ -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(),
)));
}
},

View file

@ -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(),
)));
}
}