Skip to content

Commit 5747f0d

Browse files
author
BuildTools
committed
me trying to make something work (impossible challenge)
1 parent 89a1039 commit 5747f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src_c/render.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ image_renderer_draw(pgImageObject *self, PyObject *area, PyObject *dest)
11831183
return 1;
11841184
}
11851185

1186-
#if SDL_VERSION_ATLEAST(2, 0, 20)
1186+
#if (SDL_VERSION_ATLEAST(2, 0, 20) && !SDL_VERSION_ATLEAST(3, 0, 0)) || SDL_VERSION_ATLEAST(3, 2, 0)
11871187
static PyObject *
11881188
get_line_render_method(PyObject *self, PyObject *Py_UNUSED(ignored))
11891189
{
@@ -1197,7 +1197,7 @@ set_line_render_method(PyObject *self, PyObject *args)
11971197
{
11981198
int method;
11991199
if (!PyArg_ParseTuple(args, "i", &method)) {
1200-
Py_RETURN_NONE;
1200+
return NULL;
12011201
}
12021202
if (method < 0 || 3 < method) {
12031203
return RAISE(PyExc_ValueError,

0 commit comments

Comments
 (0)