1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Fix viewport_size.height calculation

Closes #556
This commit is contained in:
N-006 2017-05-10 14:24:19 +03:00 committed by Joe Wilm
parent 5c6b7dd244
commit ccd3cc8e6a

View file

@ -184,7 +184,7 @@ impl Display {
let viewport_size = Size {
width: Pixels(width + 2 * config.padding().x as u32),
height: Pixels(width + 2 * config.padding().y as u32),
height: Pixels(height + 2 * config.padding().y as u32),
};
window.set_inner_size(&viewport_size);
renderer.resize(viewport_size.width.0 as _, viewport_size.height.0 as _);