diff options
author | Joe Wilm <joe@jwilm.com> | 2017-05-03 15:12:23 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-05-06 12:53:54 -0700 |
commit | 149fbaef09a56613c72855bc60355c7848256500 (patch) | |
tree | 89bb581b2135c702e2f8c03772bf9ddd4470ac8f /src/display.rs | |
parent | 6659810a22e62f8b41d7bc35ed07905ccebda68b (diff) | |
download | alacritty-149fbaef09a56613c72855bc60355c7848256500.tar.gz alacritty-149fbaef09a56613c72855bc60355c7848256500.zip |
Fix glyph offsets in cell
We previously had a hard-coded value for aligning glyphs within cells.
The font descent is now used, and the offset should be correct by
default.
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.rs b/src/display.rs index 5f5dd688..c2636e7e 100644 --- a/src/display.rs +++ b/src/display.rs @@ -177,8 +177,8 @@ impl Display { // Resize window to specified dimensions let dimensions = options.dimensions() .unwrap_or_else(|| config.dimensions()); - let width = cell_width * dimensions.columns_u32() + 4; - let height = cell_height * dimensions.lines_u32() + 4; + let width = cell_width * dimensions.columns_u32(); + let height = cell_height * dimensions.lines_u32(); let size = Size { width: Pixels(width), height: Pixels(height) }; info!("set_inner_size: {}", size); |