Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default dest (0, 0) to Surface.blit #2936

Merged
merged 6 commits into from
Jun 30, 2024

Conversation

damusss
Copy link
Member

@damusss damusss commented Jun 18, 2024

Implements #2935

I'm not sure if you want this to be added, personally I like it. I didn't discuss it because the implementation seemed pretty simple, so even if you don't want it it's not a big deal.
The reasoning for it can be understood in the issue description.

I only modified blit and not blits/fblits, but I'm pretty sure I can add it to them too if you want, but for now I don't think it's a good idea.

@damusss damusss requested a review from a team as a code owner June 18, 2024 08:14
@damusss damusss added the Surface pygame.Surface label Jun 18, 2024
buildconfig/stubs/pygame/surface.pyi Outdated Show resolved Hide resolved
docs/reST/ref/surface.rst Show resolved Hide resolved
@ankith26 ankith26 linked an issue Jun 18, 2024 that may be closed by this pull request
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR 🎉

This is an API change so I would like to have more eyes on this PR before we merge it in.

Copy link
Member

@oddbookworm oddbookworm left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@itzpr3d4t0r itzpr3d4t0r left a comment

Choose a reason for hiding this comment

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

LGTM, should make it a bit faster as well in theory, and allows for shorter code.

@ankith26 ankith26 added this to the 2.5.1 milestone Jun 30, 2024
@ankith26 ankith26 merged commit be0f09c into pygame-community:main Jun 30, 2024
39 checks passed
@damusss damusss deleted the blit-default-dest branch July 16, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Surface pygame.Surface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have (0, 0) as default dest argument for Surface.blit
4 participants