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 | |
parent | 56d25d1ff87809855adc98ef0915bbb66c327bde (diff) | |
download | alacritty-62c300c14ce7a96373e0094763e9fd035b6b9b6d.tar.gz 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'.
-rw-r--r-- | alacritty/src/display.rs | 5 | ||||
-rw-r--r-- | alacritty/src/renderer/mod.rs | 2 |
2 files changed, 5 insertions, 2 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. diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs index 6b27a837..da5f68a0 100644 --- a/alacritty/src/renderer/mod.rs +++ b/alacritty/src/renderer/mod.rs @@ -1219,8 +1219,6 @@ impl TextShaderProgram { let offset_x = -1.; let offset_y = 1.; - info!("Width: {}, Height: {}", width, height); - unsafe { gl::Uniform4f(self.u_projection, offset_x, offset_y, scale_x, scale_y); } |