From 26b09e1b4d13f866a0195305c9e781da27a9b483 Mon Sep 17 00:00:00 2001 From: Gabriel Vogel Date: Tue, 24 Sep 2024 22:29:03 +0200 Subject: Include images and saved meshes when pasting `Frame` `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. --- tiny_skia/src/geometry.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tiny_skia') diff --git a/tiny_skia/src/geometry.rs b/tiny_skia/src/geometry.rs index 0d5fff62..681bf25d 100644 --- a/tiny_skia/src/geometry.rs +++ b/tiny_skia/src/geometry.rs @@ -256,6 +256,7 @@ impl geometry::frame::Backend for Frame { fn paste(&mut self, frame: Self) { self.primitives.extend(frame.primitives); self.text.extend(frame.text); + self.images.extend(frame.images); } fn translate(&mut self, translation: Vector) { -- cgit