Skip to content

Disambiguate Surface loads and savers#59

Merged
talesm merged 6 commits intomainfrom
disambiguate_load_savers
Mar 27, 2026
Merged

Disambiguate Surface loads and savers#59
talesm merged 6 commits intomainfrom
disambiguate_load_savers

Conversation

@talesm
Copy link
Copy Markdown
Owner

@talesm talesm commented Mar 26, 2026

No description provided.

talesm added 6 commits March 26, 2026 11:37
they just call SDL's version of these, so they were redundant
They are available through SDL namespace as free functions, and having
them as static functions on Surface is redundant and causes confusion
about ownership of the returned Surface.
Also redirect old signature to wrapper of IMG_LoadPNG_IO()
Also Surface.SavePNG(_IO) will use IMG_SavePNG when possible, reverting to SDL_SavePNG as fallback.
@talesm talesm self-assigned this Mar 26, 2026
@talesm talesm marked this pull request as ready for review March 27, 2026 12:51
@talesm talesm merged commit 010b379 into main Mar 27, 2026
3 checks passed
@talesm talesm deleted the disambiguate_load_savers branch March 27, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant