Trim measurements in renderer::Backend
This commit is contained in:
parent
27e21a83f7
commit
a01bc865a0
1 changed files with 7 additions and 1 deletions
|
|
@ -9,7 +9,13 @@ pub enum Backend {
|
|||
Wgpu(iced_wgpu::Backend),
|
||||
}
|
||||
|
||||
impl iced_graphics::Backend for Backend {}
|
||||
impl iced_graphics::Backend for Backend {
|
||||
fn trim_measurements(&mut self) {
|
||||
match self {
|
||||
Self::Wgpu(backend) => backend.trim_measurements(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl backend::Text for Backend {
|
||||
const ICON_FONT: Font = Font::Name("Iced-Icons");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue