Implement get_format

Since raqote doesn't have multiple formats for its surfaces, this is a
noop to avoid crashing with the unimplemented
This commit is contained in:
Bastien Orivel 2019-08-16 23:08:24 +02:00
parent dc78b6a989
commit 8a57876482
2 changed files with 1 additions and 2 deletions

View file

@ -333,7 +333,7 @@ impl GenericDrawTarget for raqote::DrawTarget {
raqote::DrawTarget::fill(self, &pb.finish(), pattern.as_raqote(), &draw_options);
}
fn get_format(&self) -> SurfaceFormat {
unimplemented!();
SurfaceFormat::Raqote(())
}
fn get_size(&self) -> Size2D<i32> {
Size2D::new(self.width(), self.height())