Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve piet-coregraphics #528

Merged
merged 9 commits into from
Nov 17, 2022
3 changes: 1 addition & 2 deletions piet-coregraphics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,7 @@ impl<'a> RenderContext for CoreGraphicsContext<'a> {
) {
if let CoreGraphicsImage::NonEmpty(image) = image {
if let Some(cropped) = image.cropped(to_cgrect(src_rect)) {
// TODO: apply interpolation mode
self.ctx.draw_image(to_cgrect(dst_rect), &cropped);
self.draw_image(&CoreGraphicsImage::NonEmpty(cropped), dst_rect, _interp);
longmathemagician marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
Expand Down