We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e981165 commit 8e819b6Copy full SHA for 8e819b6
piet-direct2d/src/lib.rs
@@ -109,11 +109,6 @@ impl<'b, 'a: 'b> D2DRenderContext<'a> {
109
}
110
111
112
- pub fn current_transform(&self) -> Affine {
113
- // This is an unwrap because we protect the invariant.
114
- self.ctx_stack.last().unwrap().transform
115
- }
116
-
117
fn pop_state(&mut self) {
118
// This is an unwrap because we protect the invariant.
119
let old_state = self.ctx_stack.pop().unwrap();
@@ -426,7 +421,8 @@ impl<'a> RenderContext for D2DRenderContext<'a> {
426
421
427
422
428
423
fn current_transform(&self) -> Affine {
429
- self.current_transform()
424
+ // This is an unwrap because we protect the invariant.
425
+ self.ctx_stack.last().unwrap().transform
430
431
432
fn make_image(
0 commit comments