diff options
author | N-006 <N-006@users.noreply.github.com> | 2017-05-10 14:24:19 +0300 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-05-10 08:09:02 -0700 |
commit | ccd3cc8e6a684a180b11794ba8c94c71b7785c7e (patch) | |
tree | 66e26745045a2d19d4d5562f37cbb42653b87abf /src/display.rs | |
parent | 5c6b7dd244e309067141a206c2e2518580068d9e (diff) | |
download | alacritty-ccd3cc8e6a684a180b11794ba8c94c71b7785c7e.tar.gz alacritty-ccd3cc8e6a684a180b11794ba8c94c71b7785c7e.zip |
Fix viewport_size.height calculation
Closes #556
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.rs b/src/display.rs index 73bb0fce..20c2ce37 100644 --- a/src/display.rs +++ b/src/display.rs @@ -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 _); |