back to retained...
This commit is contained in:
1 parent
2914d7968f
commit
b6ece4a5ee
5 files changed
+519
-26
No files matched your search
+7
-7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user