diff options
author | Joe Wilm <joe@jwilm.com> | 2016-12-04 11:13:24 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-12-11 20:23:41 -0800 |
commit | 3151ef862596bbfc69b2941765f2574348d85a8f (patch) | |
tree | 0f4595cec2d18e332c4ed2f47359e7de45390442 /src/renderer | |
parent | ff5081d5e5cd2ddcf775357853b81afbcf45aef4 (diff) | |
download | alacritty-3151ef862596bbfc69b2941765f2574348d85a8f.tar.gz alacritty-3151ef862596bbfc69b2941765f2574348d85a8f.zip |
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.
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 2868a226..5f3fbfc7 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -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; |