mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
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:
parent
2550bc910d
commit
626ac0d5b8
@ -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]
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user