Skip to content

Commit 7ffdf04

Browse files
Fix: correct tuple order to (height, width) and map height→pixel_height, width→pixel_width (#4440)
Co-authored-by: Henrik Skov Midtiby <hemi@mmmi.sdu.dk>
1 parent e489ebf commit 7ffdf04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manim/cli/init/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"background_color": "BLACK",
3030
"background_opacity": 1,
3131
"scene_names": "Default",
32-
"resolution": (854, 480),
32+
"resolution": (480, 854),
3333
}
3434

3535
__all__ = ["select_resolution", "update_cfg", "project", "scene"]
@@ -76,8 +76,8 @@ def update_cfg(cfg_dict: dict[str, Any], project_cfg_path: Path) -> None:
7676
cli_config = config["CLI"]
7777
for key, value in cfg_dict.items():
7878
if key == "resolution":
79-
cli_config["pixel_width"] = str(value[0])
80-
cli_config["pixel_height"] = str(value[1])
79+
cli_config["pixel_height"] = str(value[0])
80+
cli_config["pixel_width"] = str(value[1])
8181
else:
8282
cli_config[key] = str(value)
8383

0 commit comments

Comments
 (0)