diff examples/anmrenderer.rs @ 656:988e5130fb00

Add a simpler Sprite::new() which doesn’t override width/height.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 09 Aug 2019 01:03:43 +0200
parents 967627181a76
children 6be3320a1cb3
line wrap: on
line diff
--- a/examples/anmrenderer.rs
+++ b/examples/anmrenderer.rs
@@ -109,7 +109,7 @@ fn main() {
     }
 
     // Create the sprite.
-    let sprite = Rc::new(RefCell::new(Sprite::new(0., 0.)));
+    let sprite = Rc::new(RefCell::new(Sprite::new()));
 
     // TODO: seed this PRNG with a valid seed.
     let prng = Rc::new(RefCell::new(Prng::new(0)));