diff options
author | Joe Wilm <joe@jwilm.com> | 2017-10-08 18:10:29 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-10-08 22:20:58 -0700 |
commit | 2ea20f4823ae96f92f47a1984a6dd118a9632fdb (patch) | |
tree | 910d61cc1b310fffeb0143a9f15ab34a332dd8e1 /src/display.rs | |
parent | b03ec0df37cc7967733a53383e1bb450e8e05369 (diff) | |
download | alacritty-2ea20f4823ae96f92f47a1984a6dd118a9632fdb.tar.gz alacritty-2ea20f4823ae96f92f47a1984a6dd118a9632fdb.zip |
Scale all fonts based on device-pixel-ratio
Rather than use DPI from config, use device-pixel-ratio from winit. This
is computed using the display DPI anyhow, so it should have the same
effect.
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/display.rs b/src/display.rs index 012d803b..cb5cf8c9 100644 --- a/src/display.rs +++ b/src/display.rs @@ -134,7 +134,6 @@ impl Display { ) -> Result<Display, Error> { // Extract some properties from config let font = config.font(); - let dpi = config.dpi(); let render_timer = config.render_timer(); // Create the window where Alacritty will be displayed @@ -147,7 +146,7 @@ impl Display { info!("device_pixel_ratio: {}", dpr); - let rasterizer = font::Rasterizer::new(dpi.x(), dpi.y(), dpr, config.use_thin_strokes())?; + let rasterizer = font::Rasterizer::new(dpr, config.use_thin_strokes())?; // Create renderer let mut renderer = QuadRenderer::new(&config, size)?; |