Restrict initial cell based size scaling to macOS only

No way to check if it is the right thing to do on other platforms
This commit is contained in:
Kovid Goyal 2019-03-06 21:40:05 +05:30
parent 2550bc910d
commit 626ac0d5b8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 2 deletions

View File

@ -81,8 +81,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- Update to using the Unicode 12 standard
- Fix specifying initial window size in cells not working correctly on HiDPI
screens (:iss:`1444`)
- macOS: Fix specifying initial window size in cells not working correctly on
Retina screens (:iss:`1444`)
0.13.3 [2019-01-19]

View File

@ -529,6 +529,10 @@ def initial_window_size_func(opts, cached_values):
h, h_unit = opts.initial_window_height
def get_window_size(cell_width, cell_height, dpi_x, dpi_y, xscale, yscale):
if not is_macos:
# not sure if scaling is needed on non-macOS platforms, requires
# someone with requisite hardware to test.
xscale = yscale = 1
if w_unit == 'cells':
width = cell_width * w / xscale + (dpi_x / 72) * (opts.window_margin_width + opts.window_padding_width) + 1
else: