Prepare support to flip sprite.

This commit is contained in:
2015-11-17 13:23:07 +01:00
parent cd3c290b03
commit a9d90d8c23

View File

@@ -74,6 +74,6 @@ impl<'a> Sprite for AnimatedSprite<'a> {
} }
fn render(&self, drawer: &mut Renderer, destination: &Rect) { fn render(&self, drawer: &mut Renderer, destination: &Rect) {
drawer.copy(self.texture, Some(Rect::new_unwrap(self.x, self.y, 16, 16)), Some(*destination)); drawer.copy_ex(self.texture, Some(Rect::new_unwrap(self.x, self.y, 16, 16)), Some(*destination), 0.0, None, (false, false));
} }
} }