Skip to content

Commit b57fa06

Browse files
committed
SDL3: do not use SDL_bool with python arg parse
1 parent b02b24f commit b57fa06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src_c/transform.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3736,7 +3736,7 @@ surf_average_color(PyObject *self, PyObject *args, PyObject *kwargs)
37363736
Uint8 r, g, b, a;
37373737
int x, y, w, h;
37383738
static char *keywords[] = {"surface", "rect", "consider_alpha", NULL};
3739-
SDL_bool consider_alpha = SDL_FALSE;
3739+
int consider_alpha = SDL_FALSE;
37403740

37413741
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!|Op", keywords,
37423742
&pgSurface_Type, &surfobj, &rectobj,
@@ -4050,7 +4050,7 @@ surf_box_blur(PyObject *self, PyObject *args, PyObject *kwargs)
40504050
pgSurfaceObject *dst_surf_obj = NULL;
40514051
pgSurfaceObject *src_surf_obj;
40524052
SDL_Surface *new_surf = NULL;
4053-
SDL_bool repeat_edge_pixels = SDL_TRUE;
4053+
int repeat_edge_pixels = SDL_TRUE;
40544054

40554055
int radius;
40564056

@@ -4083,7 +4083,7 @@ surf_gaussian_blur(PyObject *self, PyObject *args, PyObject *kwargs)
40834083
pgSurfaceObject *dst_surf_obj = NULL;
40844084
pgSurfaceObject *src_surf_obj;
40854085
SDL_Surface *new_surf = NULL;
4086-
SDL_bool repeat_edge_pixels = SDL_TRUE;
4086+
int repeat_edge_pixels = SDL_TRUE;
40874087

40884088
int radius;
40894089

src_c/window.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ window_set_fullscreen(pgWindowObject *self, PyObject *args, PyObject *kwargs)
371371
static PyObject *
372372
window_focus(pgWindowObject *self, PyObject *args, PyObject *kwargs)
373373
{
374-
SDL_bool input_only = SDL_FALSE;
374+
int input_only = SDL_FALSE;
375375
char *kwids[] = {"input_only", NULL};
376376
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|p", kwids, &input_only)) {
377377
return NULL;

0 commit comments

Comments
 (0)