Skip to content

Commit ca9305d

Browse files
committed
format
1 parent 08481d9 commit ca9305d

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src_c/circle.c

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,16 @@ pg_circle_as_frect(pgCircleObject *self, PyObject *_null)
371371
return pgFRect_New4((float)x, (float)y, (float)diameter, (float)diameter);
372372
}
373373

374-
375-
#define RECT_CIRCLE_CONTAINS(rect, circle, result) \
376-
if (pgCollision_CirclePoint(scirc, (double)rect->x, (double)rect->y) && \
377-
pgCollision_CirclePoint(circle, (double)(rect->x + rect->w), \
378-
(double)rect->y) && \
379-
pgCollision_CirclePoint(circle, (double)rect->x, \
380-
(double)(rect->y + rect->h)) && \
381-
pgCollision_CirclePoint(circle, (double)(rect->x + rect->w), \
382-
(double)(rect->y + rect->h))) { \
383-
result = 1; \
384-
}
374+
#define RECT_CIRCLE_CONTAINS(rect, circle, result) \
375+
if (pgCollision_CirclePoint(scirc, (double)rect->x, (double)rect->y) && \
376+
pgCollision_CirclePoint(circle, (double)(rect->x + rect->w), \
377+
(double)rect->y) && \
378+
pgCollision_CirclePoint(circle, (double)rect->x, \
379+
(double)(rect->y + rect->h)) && \
380+
pgCollision_CirclePoint(circle, (double)(rect->x + rect->w), \
381+
(double)(rect->y + rect->h))) { \
382+
result = 1; \
383+
}
385384

386385
static PyObject *
387386
pg_circle_contains(pgCircleObject *self, PyObject *arg)

0 commit comments

Comments
 (0)