no branching allowed

This commit is contained in:
2025-09-25 21:19:47 -04:00
parent 6d829dbe81
commit 06cfeaac6b
2 changed files with 12 additions and 12 deletions

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);
}
}