diff --git a/bemani/format/afp/render.py b/bemani/format/afp/render.py index d555701..cc0aeb6 100644 --- a/bemani/format/afp/render.py +++ b/bemani/format/afp/render.py @@ -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 diff --git a/bemani/utils/afputils.py b/bemani/utils/afputils.py index 52b68cb..ce9fd4b 100644 --- a/bemani/utils/afputils.py +++ b/bemani/utils/afputils.py @@ -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,