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
2 changed files with 6 additions and 2 deletions

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: