From e3e635429552b5604e5403f9df14c41547490eab Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Sat, 22 May 2021 21:54:53 +0000 Subject: [PATCH] Blend 1 is the same as blend 0, according to Bishi. --- bemani/format/afp/blend.py | 2 +- bemani/format/afp/blendalt.pyx | 2 +- bemani/format/afp/render.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bemani/format/afp/blend.py b/bemani/format/afp/blend.py index 427b009..6704182 100644 --- a/bemani/format/afp/blend.py +++ b/bemani/format/afp/blend.py @@ -128,7 +128,7 @@ except ImportError: return img # Warn if we have an unsupported blend. - if blendfunc not in {0, 2, 3, 8, 9, 70}: + if blendfunc not in {0, 1, 2, 3, 8, 9, 70}: print(f"WARNING: Unsupported blend {blendfunc}") return img diff --git a/bemani/format/afp/blendalt.pyx b/bemani/format/afp/blendalt.pyx index 29e1ccf..f8df54e 100644 --- a/bemani/format/afp/blendalt.pyx +++ b/bemani/format/afp/blendalt.pyx @@ -58,7 +58,7 @@ def affine_composite( # be drawn. return img - if blendfunc not in {0, 2, 3, 8, 9, 70}: + if blendfunc not in {0, 1, 2, 3, 8, 9, 70}: print(f"WARNING: Unsupported blend {blendfunc}") return img diff --git a/bemani/format/afp/render.py b/bemani/format/afp/render.py index 8020244..08df5e9 100644 --- a/bemani/format/afp/render.py +++ b/bemani/format/afp/render.py @@ -467,7 +467,7 @@ class AFPRenderer(VerboseOutput): else: new_only_depths = None - if blend not in {0, 2}: + if blend not in {0, 1, 2}: print(f"WARNING: Unsupported sprite blend {blend}!") # This is a sprite placement reference. Make sure that we render lower depths