Skip to content

Commit

Permalink
Remove unnecessary lock in gfxdraw
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Starbuck5 committed Jan 5, 2025
1 parent b27d0c1 commit 683139e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_c/SDL_gfx/SDL_gfxPrimitives.c
Original file line number Diff line number Diff line change
Expand Up @@ -4093,7 +4093,7 @@ ellipseColor(SDL_Surface *dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry,
result |= pixelColorNolock(dst, xmi, ypj, color);
result |= pixelColorNolock(dst, xpi, ypj, color);
result |= pixelColorNolock(dst, xmi, ymj, color);
result |= pixelColor(dst, xpi, ymj, color);
result |= pixelColorNolock(dst, xpi, ymj, color);
}
else {
result |= pixelColorNolock(dst, xmi, y, color);
Expand Down

0 comments on commit 683139e

Please sign in to comment.