don't explode when scrolling back
This commit is contained in:
1 parent
e87f129ded
commit
450ed0e82c
2 files changed
+7
-2
No files matched your search
+2
-2
@@ -552,8 +552,8 @@ impl<'a> TerminalWindow<'a> {
|
||||
let mut verts = Vec::new();
|
||||
let mut indices = Vec::new();
|
||||
|
||||
let num_cols = ((width + 1.0) / cell_width).floor() as usize;
|
||||
let num_rows = ((height + 1.0) / cell_height).floor() as usize;
|
||||
let num_cols = (width as usize + 1) / cell_width as usize;
|
||||
let num_rows = (height as usize + 1) / cell_height as usize;
|
||||
|
||||
for y in 0..num_rows {
|
||||
for x in 0..num_cols {
|
||||
|
||||
Reference in new issue
Block a user