refactor paint example
@@ -55,10 +55,10 @@ fn main() {
}
});
+ frame.handle({
let mut x = 0;
let mut y = 0;
-
- frame.handle(move |f, ev| {
+ move |f, ev| {
// println!("{}", ev);
// println!("coords {:?}", app::event_coords());
// println!("get mouse {:?}", app::get_mouse());
@@ -92,6 +92,7 @@ fn main() {
}
_ => false,
}
+ }
});
app.run().unwrap();
