aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-10-08 18:10:29 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-10-08 22:20:58 -0700
commit2ea20f4823ae96f92f47a1984a6dd118a9632fdb (patch)
tree910d61cc1b310fffeb0143a9f15ab34a332dd8e1 /src/display.rs
parentb03ec0df37cc7967733a53383e1bb450e8e05369 (diff)
downloadalacritty-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.rs3
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)?;