diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/config.rs b/src/config.rs index cef4d22a..d49caae8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -222,10 +222,6 @@ pub struct Config { #[serde(default="default_padding")] padding: Delta, - /// Pixels per inch - #[serde(default)] - dpi: Dpi, - /// Font configuration #[serde(default)] font: Font, @@ -318,7 +314,6 @@ impl Default for Config { Config { draw_bold_text_with_bright_colors: true, dimensions: Default::default(), - dpi: Default::default(), font: Default::default(), render_timer: Default::default(), custom_cursor_colors: false, @@ -1133,12 +1128,6 @@ impl Config { self.dimensions } - /// Get dpi config - #[inline] - pub fn dpi(&self) -> &Dpi { - &self.dpi - } - /// Get visual bell config #[inline] pub fn visual_bell(&self) -> &VisualBellConfig { @@ -1248,38 +1237,6 @@ impl Dimensions { } } -/// Pixels per inch -/// -/// This is only used on `FreeType` systems -#[derive(Debug, Deserialize)] -pub struct Dpi { - /// Horizontal dpi - x: f32, - - /// Vertical dpi - y: f32, -} - -impl Default for Dpi { - fn default() -> Dpi { - Dpi { x: 96.0, y: 96.0 } - } -} - -impl Dpi { - /// Get horizontal dpi - #[inline] - pub fn x(&self) -> f32 { - self.x - } - - /// Get vertical dpi - #[inline] - pub fn y(&self) -> f32 { - self.y - } -} - /// A delta for a point in a 2 dimensional plane #[derive(Clone, Copy, Debug, Deserialize)] pub struct Delta { |