From bbf87624471705e4507536577dcf7412775c804c Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 31 Mar 2021 10:32:53 +0200 Subject: [PATCH] :lipstick: --- gpui/src/platform/mac/renderer.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gpui/src/platform/mac/renderer.rs b/gpui/src/platform/mac/renderer.rs index b40f14d1938b09901d9db59f1fe7f456fa62f652..b52277e959d1fa8a5d2605e78690e618ff019df1 100644 --- a/gpui/src/platform/mac/renderer.rs +++ b/gpui/src/platform/mac/renderer.rs @@ -102,7 +102,7 @@ impl Renderer { Ok(Self { device, sprite_cache, - path_atlases: path_atlases, + path_atlases, quad_pipeline_state, shadow_pipeline_state, sprite_pipeline_state, @@ -150,8 +150,7 @@ impl Renderer { // Push a PathStencil struct for use later when sampling from the atlas as we draw the content of the layers let origin = path.bounds.origin() * scene.scale_factor(); let size = (path.bounds.size() * scene.scale_factor()).ceil(); - let (atlas_id, atlas_origin) = - self.path_atlases.allocate(size.ceil().to_i32()).unwrap(); + let (atlas_id, atlas_origin) = self.path_atlases.allocate(size.to_i32()).unwrap(); let atlas_origin = atlas_origin.to_f32(); stencils.push(PathSprite { layer_id, @@ -556,7 +555,7 @@ impl Renderer { } } - fn render_path_sprites<'a>( + fn render_path_sprites( &mut self, layer_id: usize, sprites: &mut Peekable>, @@ -623,7 +622,7 @@ impl Renderer { } } - fn render_path_sprites_for_atlas<'a>( + fn render_path_sprites_for_atlas( &mut self, offset: &mut usize, atlas_id: usize,