diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-09-24 03:08:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 03:08:26 +0300 |
commit | 62c300c14ce7a96373e0094763e9fd035b6b9b6d (patch) | |
tree | 0bb1b5a358f1c8fc8a6e88dcac78d56ea1bee1cb /alacritty/src/display.rs | |
parent | 56d25d1ff87809855adc98ef0915bbb66c327bde (diff) | |
download | r-alacritty-62c300c14ce7a96373e0094763e9fd035b6b9b6d.tar.gz r-alacritty-62c300c14ce7a96373e0094763e9fd035b6b9b6d.tar.bz2 r-alacritty-62c300c14ce7a96373e0094763e9fd035b6b9b6d.zip |
Log new padding and cell size on 'SizeInfo' update
This makes our logging of 'SizeInfo' changes more consistent
with the one we're using when creating a new 'Display'.
Diffstat (limited to 'alacritty/src/display.rs')
-rw-r--r-- | alacritty/src/display.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alacritty/src/display.rs b/alacritty/src/display.rs index 1ddcb636..00bfd83a 100644 --- a/alacritty/src/display.rs +++ b/alacritty/src/display.rs @@ -357,6 +357,8 @@ impl Display { let (cell_width, cell_height) = compute_cell_size(config, &self.glyph_cache.font_metrics()); size_info.cell_width = cell_width; size_info.cell_height = cell_height; + + info!("Cell Size: {} x {}", cell_width, cell_height); } /// Clear glyph cache. @@ -433,6 +435,9 @@ impl Display { let physical = PhysicalSize::new(self.size_info.width as u32, self.size_info.height as u32); self.window.resize(physical); self.renderer.resize(&self.size_info); + + info!("Padding: {} x {}", self.size_info.padding_x, self.size_info.padding_y); + info!("Width: {}, Height: {}", self.size_info.width, self.size_info.height); } /// Draw the screen. |