Skip to content

Commit

Permalink
Implement create_similar_draw_target
Browse files Browse the repository at this point in the history
  • Loading branch information
Eijebong committed Aug 21, 2019
1 parent 4c73e4b commit 0a3c663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/canvas/raqote_backend.rs
Expand Up @@ -241,10 +241,10 @@ impl GenericDrawTarget for raqote::DrawTarget {
}
fn create_similar_draw_target(
&self,
_size: &Size2D<i32>,
size: &Size2D<i32>,
_format: SurfaceFormat,
) -> Box<dyn GenericDrawTarget> {
unimplemented!();
Box::new(raqote::DrawTarget::new(size.width, size.height))
}
fn create_source_surface_from_data(
&self,
Expand Down

0 comments on commit 0a3c663

Please sign in to comment.