From c34ec12c309695e4c14d8e50b5f3f54198f70775 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 10 Jan 2020 01:51:37 +0000 Subject: Bump glutin to 0.22.0 Fixes #3165. --- alacritty/src/renderer/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty/src/renderer/mod.rs') diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs index 60847234..d5d48b43 100644 --- a/alacritty/src/renderer/mod.rs +++ b/alacritty/src/renderer/mod.rs @@ -358,7 +358,7 @@ impl GlyphCache { dpr: f64, cell_width: f32, cell_height: f32, - ) -> Option<(f64, f64)> { + ) -> Option<(u32, u32)> { let dimensions = config.window.dimensions; if dimensions.columns_u32() == 0 @@ -378,7 +378,7 @@ impl GlyphCache { let width = padding_x.mul_add(2., f64::from(grid_width)).floor(); let height = padding_y.mul_add(2., f64::from(grid_height)).floor(); - Some((width, height)) + Some((width as u32, height as u32)) } } -- cgit