From b02e76b6904fe4bfa0fe92924357d5800aa7508b Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 6 Sep 2025 16:42:44 +0800 Subject: [PATCH] Update vmath.c --- src/modules/vmath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/vmath.c b/src/modules/vmath.c index 428ea2e0..cec6bb65 100644 --- a/src/modules/vmath.c +++ b/src/modules/vmath.c @@ -1089,7 +1089,7 @@ static bool color32_alpha_blend_STATIC(int argc, py_Ref argv) { res.r = (unsigned char)(src.r * alpha + dst.r * (1 - alpha)); res.g = (unsigned char)(src.g * alpha + dst.g * (1 - alpha)); res.b = (unsigned char)(src.b * alpha + dst.b * (1 - alpha)); - res.a = (unsigned char)(src.a * alpha + dst.a * (1 - alpha)); + res.a = (unsigned char)(src.a + dst.a * (1 - alpha)); py_newcolor32(py_retval(), res); return true; }