mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-26 03:59:55 +00:00
💄
This commit is contained in:
parent
f5e5d7180f
commit
bbf8762447
1 changed files with 4 additions and 5 deletions
|
@ -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<vec::IntoIter<PathSprite>>,
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue