From 149fbaef09a56613c72855bc60355c7848256500 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Wed, 3 May 2017 15:12:23 -0700 Subject: 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. --- src/display.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/display.rs') 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); -- cgit v1.2.3-54-g00ecf