Fix the build and tidy and address nits

This commit is contained in:
Bastien Orivel 2019-08-21 19:17:03 +02:00
parent 168a526221
commit f829eaea03
3 changed files with 25 additions and 31 deletions

View file

@ -256,7 +256,7 @@ impl GenericDrawTarget for azure_hl::DrawTarget {
.map(|s| SourceSurface::Azure(s))
}
fn draw_surface(
&self,
&mut self,
surface: SourceSurface,
dest: Rect<f64>,
source: Rect<f64>,
@ -269,7 +269,8 @@ impl GenericDrawTarget for azure_hl::DrawTarget {
draw_options.as_azure().composition,
azure_hl::AntialiasMode::None,
);
self.draw_surface(
azure_hl::DrawTarget::draw_surface(
self,
surface.into_azure(),
dest.to_azure_style(),
source.to_azure_style(),