Skip to content

Commit

Permalink
formatting change
Browse files Browse the repository at this point in the history
  • Loading branch information
JovialKnoll committed Dec 6, 2024
1 parent 168626d commit b9beb81
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src_py/sprite.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,18 @@ def draw(self, surface):
sprites = self.sprites()
if hasattr(surface, "blits"):
self.spritedict.update(
zip(sprites, surface.blits((spr.image, spr.rect, spr.source_rect) for spr in sprites))
zip(
sprites,
surface.blits(
(spr.image, spr.rect, spr.source_rect) for spr in sprites
),
)
)
else:
for spr in sprites:
self.spritedict[spr] = surface.blit(spr.image, spr.rect, spr.source_rect)
self.spritedict[spr] = surface.blit(
spr.image, spr.rect, spr.source_rect
)
self.lostsprites = []
dirty = self.lostsprites

Expand Down

0 comments on commit b9beb81

Please sign in to comment.