From 3ef8e8d1b8a8fe37d738a3feae30ba695e177256 Mon Sep 17 00:00:00 2001 From: yunline Date: Mon, 9 Dec 2024 11:11:24 +0800 Subject: [PATCH] Add BLENDMODE_MUL to constants --- buildconfig/stubs/pygame/__init__.pyi | 1 + buildconfig/stubs/pygame/constants.pyi | 1 + buildconfig/stubs/pygame/locals.pyi | 1 + src_c/constants.c | 1 + src_c/cython/pygame/_sdl2/video.pxd | 1 + 5 files changed, 5 insertions(+) diff --git a/buildconfig/stubs/pygame/__init__.pyi b/buildconfig/stubs/pygame/__init__.pyi index ffb58f4cdb..76ed89d986 100644 --- a/buildconfig/stubs/pygame/__init__.pyi +++ b/buildconfig/stubs/pygame/__init__.pyi @@ -111,6 +111,7 @@ from .constants import ( BLENDMODE_ADD as BLENDMODE_ADD, BLENDMODE_BLEND as BLENDMODE_BLEND, BLENDMODE_MOD as BLENDMODE_MOD, + BLENDMODE_MUL as BLENDMODE_MUL, BLENDMODE_NONE as BLENDMODE_NONE, BLEND_ADD as BLEND_ADD, BLEND_ALPHA_SDL2 as BLEND_ALPHA_SDL2, diff --git a/buildconfig/stubs/pygame/constants.pyi b/buildconfig/stubs/pygame/constants.pyi index 463f2509c8..2c4f5030f9 100644 --- a/buildconfig/stubs/pygame/constants.pyi +++ b/buildconfig/stubs/pygame/constants.pyi @@ -34,6 +34,7 @@ BIG_ENDIAN: int BLENDMODE_ADD: int BLENDMODE_BLEND: int BLENDMODE_MOD: int +BLENDMODE_MUL: int BLENDMODE_NONE: int BLEND_ADD: int BLEND_ALPHA_SDL2: int diff --git a/buildconfig/stubs/pygame/locals.pyi b/buildconfig/stubs/pygame/locals.pyi index e596355311..b1d3a99093 100644 --- a/buildconfig/stubs/pygame/locals.pyi +++ b/buildconfig/stubs/pygame/locals.pyi @@ -34,6 +34,7 @@ BIG_ENDIAN: int BLENDMODE_ADD: int BLENDMODE_BLEND: int BLENDMODE_MOD: int +BLENDMODE_MUL: int BLENDMODE_NONE: int BLEND_ADD: int BLEND_ALPHA_SDL2: int diff --git a/src_c/constants.c b/src_c/constants.c index 771aefca5a..04b8e0771d 100644 --- a/src_c/constants.c +++ b/src_c/constants.c @@ -160,6 +160,7 @@ MODINIT_DEFINE(constants) DEC_CONST(BLENDMODE_BLEND); DEC_CONST(BLENDMODE_ADD); DEC_CONST(BLENDMODE_MOD); + DEC_CONST(BLENDMODE_MUL); DEC_CONST(GL_STEREO); DEC_CONST(GL_MULTISAMPLEBUFFERS); DEC_CONST(GL_MULTISAMPLESAMPLES); diff --git a/src_c/cython/pygame/_sdl2/video.pxd b/src_c/cython/pygame/_sdl2/video.pxd index 8d3d868286..1d87ba43b2 100644 --- a/src_c/cython/pygame/_sdl2/video.pxd +++ b/src_c/cython/pygame/_sdl2/video.pxd @@ -107,6 +107,7 @@ cdef extern from "SDL.h" nogil: SDL_BLENDMODE_BLEND = 0x00000001, SDL_BLENDMODE_ADD = 0x00000002, SDL_BLENDMODE_MOD = 0x00000004, + SDL_BLENDMODE_MUL = 0x00000008, SDL_BLENDMODE_INVALID = 0x7FFFFFFF # https://wiki.libsdl.org/SDL_MessageBoxData