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

Include images and saved meshes when pasting Frame #2605

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

Gobbel2000
Copy link
Contributor

tiny_skia::Frame was ignoring images in Frame::paste, making images not show up when created in a with_clip context.

wgpu::Frame similarly did not pass through meshes in its paste method, that may have been saved from a nested with_clip call.

I'm not sure that nesting with_clip makes a lot of sense, because only the innermost clip region gets applied (should this be documented?), also it seems like images are not yet affected by clipping? Nevertheless, these fixes seem relevant.

`tiny_skia::Frame` was ignoring images in `Frame::paste`, making images
not show up when created in a `with_clip` context.

`wgpu::Frame` similarly did not pass through meshes in its paste method,
that may have been saved from a nested `with_clip` call.
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hecrj hecrj modified the milestones: 0.14, 0.13 Sep 24, 2024
@hecrj hecrj added bug Something isn't working widget wgpu canvas fix labels Sep 24, 2024
@hecrj hecrj merged commit 3c68b64 into iced-rs:master Sep 24, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants