mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user