-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Fix segfault with antialiased draw functions with a depth different than 32bits #3008
Merged
ankith26
merged 29 commits into
pygame-community:main
from
bilhox:draw-antialiased-depth-segfault
Sep 24, 2024
Merged
Changes from 26 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
525a82e
fix segfault
bilhox 6ad5b90
format fix
bilhox 44ca2bc
format issue
bilhox 14a2737
another format issue
bilhox b51c6e1
f issue
bilhox 5fdc0c3
add tests
bilhox 8830ccf
py format fix
bilhox bf4b9fb
removed 24bits case
bilhox 8ccf69c
removed masks
bilhox c451a6e
format fix
bilhox 859d492
fix segfault & antialiasing for 24bits
bilhox bd597a3
format issue
bilhox a9e36ff
format issue 2
bilhox 1eede6e
format issue 3
bilhox 91b0756
switch refactor
bilhox 0e19136
clang format
bilhox 7762f9e
draw.c skill issue
bilhox dec2aeb
test update
bilhox 30a25ba
refactor
bilhox 625806f
8bit fix
bilhox 5d9dee0
format issue
bilhox dcb27e2
big endian fix
bilhox 779622c
Merge branch 'pygame-community:main' into draw-antialiased-depth-segf…
bilhox ab6d773
switch case
bilhox 4f155ab
hopefully it fixes some problems
bilhox b71cd9a
removed not necessary include
bilhox b24586f
Merge branch 'pygame-community:main' into draw-antialiased-depth-segf…
bilhox a53c7b5
SDL3 compatibility
bilhox 4d42053
size_t to int
bilhox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bpp = PG_SURF_BytesPerPixel(surf);
for SDL3 compatibility.Why is this a size_t?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work changing surf->w to surf->pitch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, I can't remember what i was thinking about when I used
size_t
. Switching toint
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approved and all, but just for the record you didn't switch to int.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I forgot, now It's updated.