Fix building with mock-backend and no-subsurfaces

This commit is contained in:
Ian Douglas Scott 2024-12-16 17:00:09 -08:00
parent 70d6c415a1
commit 81ea2f20d4

View file

@ -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),
),
}
}