pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

[Part 3] SDL3: surface+pixelarray+font+draw: runtime fixes

Open ankith26 opened this issue 2 months ago • 1 comments
trafficstars

  • A few abstractions were improved. PG_ConvertSurface now 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_GetSurfacePalette now creates a palette when the surface is indexed, SDL2 did it implicitly.
  • Added compat code for PG_BlitSurface because SDL3 doesn't modify dstrect anymore.

ankith26 avatar Sep 01 '25 14:09 ankith26