Skip to content

Commit 1a73b32

Browse files
committed
SDL3: scrap: runtime issues fixes
1 parent ebac4fd commit 1a73b32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src_c/scrap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,11 @@ _scrap_put_text(PyObject *self, PyObject *args)
441441
return NULL;
442442
}
443443

444+
#if SDL_VERSION_ATLEAST(3, 0, 0)
445+
if (!SDL_SetClipboardText(text)) {
446+
#else
444447
if (SDL_SetClipboardText(text)) {
448+
#endif
445449
return RAISE(pgExc_SDLError, SDL_GetError());
446450
}
447451

0 commit comments

Comments
 (0)