mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Rename RenderApi::render_grid() to render_cells()
This probably should have been renamed in the original refactor, but oh well. `render_cells()` takes a generic parameter `I` which is any `Iterator<Item=IndexedCell>` and is thus no longer coupled to the grid type. Renaming it reflects that.
This commit is contained in:
parent
ff5081d5e5
commit
3151ef8625
2 changed files with 5 additions and 5 deletions
|
@ -364,7 +364,7 @@ impl Display {
|
|||
api.clear();
|
||||
|
||||
// Draw the grid
|
||||
api.render_grid(terminal.renderable_cells(), glyph_cache);
|
||||
api.render_cells(terminal.renderable_cells(), glyph_cache);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -685,7 +685,7 @@ impl<'a> RenderApi<'a> {
|
|||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
self.render_grid(cells.into_iter(), glyph_cache);
|
||||
self.render_cells(cells.into_iter(), glyph_cache);
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -705,14 +705,14 @@ impl<'a> RenderApi<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn render_grid<I>(
|
||||
pub fn render_cells<I>(
|
||||
&mut self,
|
||||
occupied_cells: I,
|
||||
cells: I,
|
||||
glyph_cache: &mut GlyphCache
|
||||
)
|
||||
where I: Iterator<Item=::term::IndexedCell>
|
||||
{
|
||||
for cell in occupied_cells {
|
||||
for cell in cells {
|
||||
// Get font key for cell
|
||||
// FIXME this is super inefficient.
|
||||
let mut font_key = glyph_cache.font_key;
|
||||
|
|
Loading…
Reference in a new issue