no branching allowed

This commit is contained in:
iris committed 2025-09-25 21:19:47 -04:00
1 parent 6d829dbe81
commit 06cfeaac6b
2 files changed
+12 -12

No files matched your search

+4 -4
View File
@@ -291,12 +291,12 @@ impl<'a, 'c> Painter<'a, 'c> {
self.ctx.text
}
pub fn child_layer(&mut self) -> usize {
self.ctx.layers.child(self.layer)
pub fn child_layer(&mut self) {
self.layer = self.ctx.layers.child(self.layer);
}
pub fn next_layer(&mut self) -> usize {
self.ctx.layers.next(self.layer)
pub fn next_layer(&mut self) {
self.layer = self.ctx.layers.next(self.layer);
}
}