diff --git a/manimlib/config.py b/manimlib/config.py index 2e9ac23a..d1d1cfa5 100644 --- a/manimlib/config.py +++ b/manimlib/config.py @@ -394,10 +394,10 @@ def get_configuration(args): mon_index = custom_config["window_monitor"] monitor = monitors[min(mon_index, len(monitors) - 1)] aspect_ratio = config["camera_config"]["pixel_width"] / config["camera_config"]["pixel_height"] - window_height = monitor.height + window_width = monitor.width if not (args.full_screen or custom_config["full_screen"]): - window_height //= 2 - window_width = int(window_height * aspect_ratio) + window_width //= 2 + window_height = int(window_width / aspect_ratio) config["window_config"] = { "size": (window_width, window_height), }