1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-24 16:08:34 +03:00

fix issue where resizing can lead to stair effect

The column count didn't match the pty size col count for some partial
cell width sizes.
This commit is contained in:
Wez Furlong 2019-10-26 17:11:22 -07:00
parent 833d76185f
commit f1172c6272

View File

@ -137,8 +137,8 @@ impl OpenGLRenderState {
let mut verts = Vec::new();
let mut indices = Vec::new();
let num_cols = (width as usize + 1) / cell_width as usize;
let num_rows = (height as usize + 1) / cell_height as usize;
let num_cols = width as usize / cell_width as usize;
let num_rows = height as usize / cell_height as usize;
for y in 0..num_rows {
for x in 0..num_cols {