From d05d16f023b27fc4707478668db73d6860918956 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Mon, 12 Nov 2018 18:23:23 +0000 Subject: Fix incorrect padding calculations The extra window padding was calculated in the renderer which lead to problems with the paddings calculated in the `src/display.rs` and `src/term/mod.rs`. As a solution, every instance of `config.padding().x/y` has been removed from the renderer (`src/renderer/mod.rs`), instead the padding is always passed through from the `src/display.rs`. The initial calculations during display creation and after resize then are scaled appropriately and then the extra padding is calculated. As a result every other location can just make use of the correctly calculated `size_info.padding_x` and `size_info.padding_y`. The documentation has been changed to clearly state that the padding is scaled by DPI now. This fixes #1773. --- alacritty_windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty_windows.yml') diff --git a/alacritty_windows.yml b/alacritty_windows.yml index 8be7ea52..1da098f7 100644 --- a/alacritty_windows.yml +++ b/alacritty_windows.yml @@ -23,7 +23,7 @@ window: # Window padding (changes require restart) # - # Blank space added around the window in pixels. This padding is not scaled + # Blank space added around the window in pixels. This padding is scaled # by DPI and the specified value is always added at both opposing sides. padding: x: 2 -- cgit v1.2.3-54-g00ecf