back to retained...

This commit is contained in:
2025-11-17 13:55:49 -05:00
parent 2914d7968f
commit b6ece4a5ee
5 changed files with 519 additions and 26 deletions

View File

@@ -134,14 +134,14 @@ impl Ui {
}
fn redraw_updates(&mut self) {
if self.updates.drain(..).next().is_some() {
self.redraw_all();
}
// 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