no branching allowed
This commit is contained in:
1 parent
6d829dbe81
commit
06cfeaac6b
2 files changed
+12
-12
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user