Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adjust surface masks to create a proper 24 bit Surface#3577

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
MyreMylar merged 1 commit intomainfromfix-surface-test
Nov 20, 2022

Conversation

@Starbuck5
Copy link
Contributor

The SDL 2.26.0 pre-release rejects a 24 bit Surface created with this mask, which is the right call, as it needs 32 bits of space. Older SDL went ahead and created a 32 bit surface anyway, which it probably shouldn't have.

The SDL 2.26.0 pre-release rejects a 24 bit Surface created with this mask, which is the right call, as it needs 32 bits of space. Older SDL went ahead and created a 32 bit surface anyway, which it probably shouldn't have.
Copy link
Contributor

@ankith26ankith26 left a comment

Choose a reason for hiding this comment

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

This change makes sense, though I'm slightly concerned since this is behaviour changing. But I don't think it would bread much "real code" so I'll go ahead and approve. Thanks 🎉

Also unrelated to this PR, but these mask numbers would probably make more visual sense when written in hex.

Copy link
Contributor

@MyreMylarMyreMylar left a comment

Choose a reason for hiding this comment

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

LGTM 👍

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull requestDec 13, 2022
https://build.opensuse.org/request/show/1042426by user dgarcia + dimstar_suse- Add adjust-surface-mask.patch gh#pygame/pygame#3577, to fix tests with SDL  2.26.0.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@MyreMylarMyreMylarMyreMylar approved these changes

@ankith26ankith26ankith26 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

Surfacepygame.Surfaceteststests (module)

Projects

None yet

Milestone

2.2.0

Development

Successfully merging this pull request may close these issues.

4 participants

@Starbuck5@MyreMylar@ankith26

[8]ページ先頭

©2009-2025 Movatter.jp