Skip to content

Commit

Permalink
Bump kurbo dep
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Oct 18, 2024
1 parent 2532bd7 commit 0b0acea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion piet-cairo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ impl<'a> CairoRenderContext<'a> {
};
// Cairo returns an error if we try to paint an empty image, causing us to panic. We check if
// either the source or destination is empty, and early-return if so.
if src_rect.is_empty() || dst_rect.is_empty() {
if src_rect.is_zero_area() || dst_rect.is_zero_area() {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion piet-direct2d/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ fn draw_image<'a>(
dst_rect: Rect,
interp: InterpolationMode,
) {
if dst_rect.is_empty() || image.empty_image {
if dst_rect.is_zero_area() || image.empty_image {
// source or destination are empty
return;
}
Expand Down
2 changes: 1 addition & 1 deletion piet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ include = ["src/**/*", "Cargo.toml", "snapshots/resources/*"]

[dependencies]
image = { version = "0.24.5", optional = true, default-features = false }
kurbo = "0.10.4"
kurbo = "0.11.1"
pico-args = { version = "0.4.2", optional = true }
png = { version = "0.17.7", optional = true }
os_info = { version = "3.6.0", optional = true, default-features = false }
Expand Down

0 comments on commit 0b0acea

Please sign in to comment.