Skip to content

Commit

Permalink
fix: remove wayland default feature
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Sep 17, 2024
1 parent c3b14f1 commit e814de9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ all-features = true
maintenance = { status = "actively-developed" }

[features]
default = ["tiny-skia", "wayland"]
default = ["tiny-skia"]
# Enable the `wgpu` GPU-accelerated renderer backend
wgpu = ["iced_renderer/wgpu", "iced_widget/wgpu"]
# Enable the `tiny-skia` software renderer backend
Expand Down Expand Up @@ -249,6 +249,3 @@ useless_conversion = "deny"

[workspace.lints.rustdoc]
broken_intra_doc_links = "forbid"

[patch.crates-io]
winit = { git = "https://github.com/rust-windowing/winit.git", rev = "241b7a80bba96c91fa3901729cd5dec66abb9be4" }
10 changes: 8 additions & 2 deletions tiny_skia/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ impl geometry::frame::Backend for Frame {

image.rotation += external_rotation;

self.images.push(graphics::Image::Raster(image, bounds));
self.images.push(graphics::Image::Raster {
handle: image,
bounds,
});
}

fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>) {
Expand All @@ -300,7 +303,10 @@ impl geometry::frame::Backend for Frame {

svg.rotation += external_rotation;

self.images.push(Image::Vector(svg, bounds));
self.images.push(Image::Vector {
handle: svg,
bounds,
});
}
}

Expand Down
1 change: 1 addition & 0 deletions widget/src/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ where
Some(Event::Keyboard(keyboard_event))
}
core::Event::Window(_) => None,
_ => None,
};

if let Some(canvas_event) = canvas_event {
Expand Down

0 comments on commit e814de9

Please sign in to comment.