pygame-ce
pygame-ce copied to clipboard
[Part 3] SDL3: surface+pixelarray+font+draw: runtime fixes
trafficstars
- A few abstractions were improved.
PG_ConvertSurfacenow takes a surface as its second argument so it can copy the palette from it, to compat for the SDL2 path already doing it because there palette was part of the format.PG_GetSurfacePalettenow creates a palette when the surface is indexed, SDL2 did it implicitly. - Added compat code for
PG_BlitSurfacebecause SDL3 doesn't modify dstrect anymore.