Implement set_fill_style

This commit is contained in:
Bastien Orivel 2019-08-08 16:15:21 +02:00
parent cbe385c7d7
commit 93f1053b0e

View file

@ -34,11 +34,13 @@ impl Backend for RaqoteBackend {
fn set_fill_style<'a>(
&mut self,
_style: FillOrStrokeStyle,
_state: &mut CanvasPaintState<'a>,
style: FillOrStrokeStyle,
state: &mut CanvasPaintState<'a>,
_drawtarget: &dyn GenericDrawTarget,
) {
unimplemented!()
if let Some(source) = style.to_raqote_source() {
state.fill_style = Pattern::Raqote(source);
}
}
fn set_stroke_style<'a>(