Fix building with mock-backend and no-subsurfaces
This commit is contained in:
parent
70d6c415a1
commit
81ea2f20d4
1 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,12 @@ fn create_solid_capture_image(r: u8, g: u8, b: u8) -> CaptureImage {
|
||||||
.into(),
|
.into(),
|
||||||
))
|
))
|
||||||
.0,
|
.0,
|
||||||
|
#[cfg(feature = "no-subsurfaces")]
|
||||||
|
image: cosmic::widget::image::Handle::from_pixels(
|
||||||
|
512,
|
||||||
|
512,
|
||||||
|
[r, g, b, 255].repeat(512 * 512),
|
||||||
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue