diff options
author | Joe Wilm <joe@jwilm.com> | 2016-06-28 09:18:54 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-06-28 09:18:54 -0700 |
commit | 69ed81d2495c6eb548c44e73c0e9ed359d3820f0 (patch) | |
tree | c12611c50799452ee99ca03b7097dab1780dd27e /src/grid.rs | |
parent | 8454bbe18340208286572a01e32f2d1a84440308 (diff) | |
download | alacritty-69ed81d2495c6eb548c44e73c0e9ed359d3820f0.tar.gz alacritty-69ed81d2495c6eb548c44e73c0e9ed359d3820f0.zip |
Refactor Tty and Grid creation into Term::new
This moves more logic out of main() and prepares the Term type to handle
resizing. By providing all size data to Term, it is now possible to
implement a resize function there which handles all resizing logic save
for the rendering subsystem.
Diffstat (limited to 'src/grid.rs')
-rw-r--r-- | src/grid.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/grid.rs b/src/grid.rs index 9ce16c81..42dcf210 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -8,11 +8,6 @@ use util::Rotate; use term::{Cursor, DEFAULT_FG, DEFAULT_BG}; use ::Rgb; -/// Calculate the number of cells for an axis -pub fn num_cells_axis(cell_width: u32, screen_width: u32) -> u32 { - (screen_width as f64 / cell_width as f64) as u32 -} - #[derive(Clone, Debug)] pub struct Cell { pub c: char, |