1
0
mirror of synced 2025-01-18 22:24:04 +01:00

Convert anti-aliased rendering to an experimental enable, instead of enabled by default.

This commit is contained in:
Jennifer Taylor 2021-05-31 18:10:25 +00:00
parent 83495f44af
commit b022149d28
2 changed files with 6 additions and 6 deletions

View File

@ -397,7 +397,7 @@ MissingThis = object()
class AFPRenderer(VerboseOutput):
def __init__(self, shapes: Dict[str, Shape] = {}, textures: Dict[str, Image.Image] = {}, swfs: Dict[str, SWF] = {}, single_threaded: bool = False, enable_aa: bool = True) -> None:
def __init__(self, shapes: Dict[str, Shape] = {}, textures: Dict[str, Image.Image] = {}, swfs: Dict[str, SWF] = {}, single_threaded: bool = False, enable_aa: bool = False) -> None:
super().__init__()
# Options for rendering

View File

@ -523,7 +523,7 @@ def render_path(
output: str,
*,
disable_threads: bool = False,
disable_anti_aliasing: bool = False,
enable_anti_aliasing: bool = False,
background_color: Optional[str] = None,
background_image: Optional[str] = None,
force_aspect_ratio: Optional[str] = None,
@ -533,7 +533,7 @@ def render_path(
only_frames: Optional[str] = None,
verbose: bool = False,
) -> int:
renderer = AFPRenderer(single_threaded=disable_threads, enable_aa=not disable_anti_aliasing)
renderer = AFPRenderer(single_threaded=disable_threads, enable_aa=enable_anti_aliasing)
load_containers(renderer, containers, need_extras=True, verbose=verbose)
# Verify the correct params.
@ -920,9 +920,9 @@ def main() -> int:
help="Disable multi-threaded rendering.",
)
render_parser.add_argument(
"--disable-anti-aliasing",
"--enable-anti-aliasing",
action="store_true",
help="Disable anti-aliased rendering.",
help="Enable experimental anti-aliased rendering.",
)
render_parser.add_argument(
"-v",
@ -988,7 +988,7 @@ def main() -> int:
args.path,
args.output,
disable_threads=args.disable_threads,
disable_anti_aliasing=args.disable_anti_aliasing,
enable_anti_aliasing=args.enable_anti_aliasing,
background_color=args.background_color,
background_image=args.background_image,
force_aspect_ratio=args.force_aspect_ratio,