Make CanvasData use GenericDrawTarget

This commit is contained in:
pylbrecht 2019-05-24 15:45:15 +02:00 committed by Josh Matthews
parent 7ace517770
commit 42bf1984be
2 changed files with 223 additions and 172 deletions

View file

@ -197,7 +197,7 @@ impl<'a> CanvasPaintThread<'a> {
Canvas2dMsg::SetShadowBlur(value) => self.canvas(canvas_id).set_shadow_blur(value),
Canvas2dMsg::SetShadowColor(ref color) => self
.canvas(canvas_id)
.set_shadow_color(color.to_azure_style()),
.set_shadow_color(Color::Azure(color.to_azure_style())),
}
}