pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
766 stars 120 forks source link

More SDL3 compat: Surface things #2922

Closed Starbuck5 closed 2 weeks ago

Starbuck5 commented 2 weeks ago

Adds surface BPP macros to new code that slipped around https://github.com/pygame-community/pygame-ce/pull/2804

Makes PG_SurfaceHasRLE work everywhere, not just in rotozoom, and uses it to replace a nearly identical hack in surface.c, but with a strategy that instead calls an SDL function in SDL 2.0.14 and above (which works in SDL3, where the original hack doesn't).