Skip to content

Fix palettes in newsurf_fromsurf #3464

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

Merged

Conversation

oddbookworm
Copy link
Member

#3314 had an uncaught issue that means newsurf_fromsurf instantiates palettes incorrectly, causing .... white. I reported this before when I was trying to revive #2354, but I could only point to the specific PR that broke it. Now that #3463 has been opened, I investigated further and finally found the source of the problem. I haven't tested it on my pixelate problem, but I suspect this is the cause there as well because it's the same symptom

Closes #3463 and should also close #3370, but I'll verify that one manually at a later date

@oddbookworm oddbookworm requested a review from a team as a code owner June 3, 2025 02:57
@oddbookworm oddbookworm added transform pygame.transform bugfix PR that fixes bug labels Jun 3, 2025
@oddbookworm
Copy link
Member Author

Also fixes #2354
That PR currently has a failing test, but it works locally if I apply the fix from this PR

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! 🥳

@ankith26 ankith26 added this to the 2.5.5 milestone Jun 3, 2025
Copy link
Member

@Starbuck5 Starbuck5 left a comment

Choose a reason for hiding this comment

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

Thank you

@ankith26 ankith26 merged commit b145d4d into pygame-community:main Jun 3, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR that fixes bug transform pygame.transform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image glitch when loading and immediately rotating a surface. Investigate for any regressions in scale_to
3 participants