Skip to content

Commit 96c033c

Browse files
committed
Port constants.c to SDL3
1 parent 5e57805 commit 96c033c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src_c/_pygame.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ typedef enum {
284284
SDL_ACTIVEEVENT = SDL_USEREVENT,
285285
SDL_VIDEORESIZE,
286286
SDL_VIDEOEXPOSE,
287+
#if SDL_VERSION_ATLEAST(3, 0, 0)
288+
/* SDL_SYSWMEVENT removed in SDL3, define it here for compat */
289+
SDL_SYSWMEVENT,
290+
#endif
287291

288292
PGE_MIDIIN,
289293
PGE_MIDIOUT,

src_c/meson.build

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ color = py.extension_module(
1818
subdir: pg,
1919
)
2020

21-
# TODO: support SDL3
22-
if sdl_api != 3
2321
constants = py.extension_module(
2422
'constants',
2523
'constants.c',
@@ -28,7 +26,6 @@ constants = py.extension_module(
2826
install: true,
2927
subdir: pg,
3028
)
31-
endif
3229

3330
# TODO: support SDL3
3431
if sdl_api != 3

0 commit comments

Comments
 (0)