Skip to content

Commit f2304dd

Browse files
committed
Fix raising error in inner_function.
1 parent 4908911 commit f2304dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/draw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,7 @@ flood_fill_inner(SDL_Surface *surf, int x1, int y1, Uint32 new_color,
25102510
SDL_Rect cliprect;
25112511
size_t mask_idx;
25122512
if (!PG_GetSurfaceClipRect(surf, &cliprect)) {
2513-
return RAISE(pgExc_SDLError, SDL_GetError());
2513+
return -1;
25142514
}
25152515
size_t frontier_bufsize = 8, frontier_size = 1, next_frontier_size = 0;
25162516

0 commit comments

Comments
 (0)