Skip to content

Commit 8802ff5

Browse files
committed
now using <=
1 parent c112768 commit 8802ff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/rect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ pg_rect_clip(pgRectObject *self, PyObject *args)
11121112
w = MIN(A->x + A->w, B->x + B->w) - x;
11131113
h = MIN(A->y + A->h, B->y + B->h) - y;
11141114

1115-
if (w < 0 || h < 0) {
1115+
if (w <= 0 || h <= 0) {
11161116
return _pg_rect_subtype_new4(Py_TYPE(self), A->x, A->y, 0, 0);
11171117
}
11181118

0 commit comments

Comments
 (0)