Skip to content

Conversation

@yunline
Copy link
Contributor

@yunline yunline commented Dec 20, 2023

Fixes #2616

@yunline yunline added video pygame.video bugfix PR that fixes bug labels Dec 20, 2023
@yunline yunline requested a review from a team as a code owner December 20, 2023 08:57
elif not hasattr(source, 'draw'):
raise TypeError('source must be drawable')
else:
if isinstance(source, (Texture,Image)) or hasattr(source, 'draw'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't a single hasattr(source, 'draw') check suffice here?

@yunline
Copy link
Contributor Author

yunline commented Dec 21, 2023

Continue in #2623.

@yunline yunline closed this Dec 21, 2023
@yunline yunline deleted the fix-render-frect-blit branch December 21, 2023 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR that fixes bug video pygame.video

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDL2 Blit Does Not Support FRect

2 participants