1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

Remove scale_with_dpi setting from config

Since the `scale_with_dpi` setting has been deprecated, but it hasn't
been removed from the config, Alacritty would print an error every time
it is started.

To resolve this problem, the option is removed from the default
configuration file.
This commit is contained in:
Christian Duerr 2018-11-18 23:05:38 +00:00 committed by GitHub
parent e72a649794
commit e429b8dfdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions

View file

@ -121,12 +121,6 @@ font:
x: 0 x: 0
y: 0 y: 0
# Scale the font size based on the monitor's DPI. This will lead to bigger text on HiDPI
# screens and make reading text a little easier.
# On X11 it is possible to change the DPI for each instance of alacritty by using
# `WINIT_HIDPI_FACTOR=1.0 alacritty` to scale the font.
scale_with_dpi: true
# Display the time it takes to redraw each frame. # Display the time it takes to redraw each frame.
render_timer: false render_timer: false

View file

@ -1894,16 +1894,10 @@ fn deserialize_scale_with_dpi<'a, D>(deserializer: D) -> ::std::result::Result<O
where where
D: de::Deserializer<'a>, D: de::Deserializer<'a>,
{ {
use ::util::fmt;
// This is necessary in order to get serde to complete deserialization of the configuration // This is necessary in order to get serde to complete deserialization of the configuration
let _ignored = bool::deserialize(deserializer); let _ignored = bool::deserialize(deserializer);
eprintln!( error!("The `scale_with_dpi` setting has been removed, \
"{}", on X11 the WINIT_HIDPI_FACTOR environment variable can be used instead.");
fmt::Yellow(
"The `scale_with_dpi` setting has been removed, \
on X11 the WINIT_HIDPI_FACTOR environment variable can be used instead."
)
);
Ok(None) Ok(None)
} }