From 81ea2f20d44062a6464f6b85216b5dc3785f186b Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Mon, 16 Dec 2024 17:00:09 -0800 Subject: [PATCH] Fix building with `mock-backend` and `no-subsurfaces` --- src/backend/mock.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/backend/mock.rs b/src/backend/mock.rs index e13a2ac..110a756 100644 --- a/src/backend/mock.rs +++ b/src/backend/mock.rs @@ -60,6 +60,12 @@ fn create_solid_capture_image(r: u8, g: u8, b: u8) -> CaptureImage { .into(), )) .0, + #[cfg(feature = "no-subsurfaces")] + image: cosmic::widget::image::Handle::from_pixels( + 512, + 512, + [r, g, b, 255].repeat(512 * 512), + ), } }