Reduce max remembered window size of 50K pixels

This commit is contained in:
Kovid Goyal 2022-02-07 12:19:32 +05:30
parent a3b046fdcd
commit ba97a728f2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -31,7 +31,7 @@ class WindowSizeData(NamedTuple):
def sanitize_window_size(x: Any) -> int:
ans = int(x)
return max(20, min(ans, 100000))
return max(20, min(ans, 50000))
def initial_window_size_func(opts: WindowSizeData, cached_values: Dict[str, Any]) -> Callable[[int, int, float, float, float, float], Tuple[int, int]]: