I give up on retained for now lmao
This commit is contained in:
@@ -134,11 +134,14 @@ impl Ui {
|
||||
}
|
||||
|
||||
fn redraw_updates(&mut self) {
|
||||
let mut ctx = PainterCtx::new(&mut self.data);
|
||||
for id in self.updates.drain(..) {
|
||||
ctx.redraw(id);
|
||||
if self.updates.drain(..).next().is_some() {
|
||||
self.redraw_all();
|
||||
}
|
||||
self.free();
|
||||
// let mut ctx = PainterCtx::new(&mut self.data);
|
||||
// for id in self.updates.drain(..) {
|
||||
// ctx.redraw(id);
|
||||
// }
|
||||
// self.free();
|
||||
}
|
||||
|
||||
/// free any resources that don't have references anymore
|
||||
|
||||
Reference in New Issue
Block a user