Skip to content

Commit 683139e

Browse files
committed
Remove unnecessary lock in gfxdraw
All the surrounding code is written to assume the surface has already been locked (which it has). Possibly this was a copy paste error many years ago, it's been in pygame/pygame-ce for at least 9 years.
1 parent b27d0c1 commit 683139e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src_c/SDL_gfx/SDL_gfxPrimitives.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4093,7 +4093,7 @@ ellipseColor(SDL_Surface *dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry,
40934093
result |= pixelColorNolock(dst, xmi, ypj, color);
40944094
result |= pixelColorNolock(dst, xpi, ypj, color);
40954095
result |= pixelColorNolock(dst, xmi, ymj, color);
4096-
result |= pixelColor(dst, xpi, ymj, color);
4096+
result |= pixelColorNolock(dst, xpi, ymj, color);
40974097
}
40984098
else {
40994099
result |= pixelColorNolock(dst, xmi, y, color);

0 commit comments

Comments
 (0)