pygame-ce
pygame-ce copied to clipboard
Condense `SDL_PixelFormat` copy code in `pgSurface_Blit()`
trafficstars
This PR tries to make code more compact, legible and not dependant on SDL versions. Not completely sure this will work though.
@itzpr3d4t0r that recent commit confuses me in context of all the rest of the changes here. Am I missing something, or is this incomplete for now?
@itzpr3d4t0r that recent commit confuses me in context of all the rest of the changes here. Am I missing something, or is this incomplete for now?
You can shallow copy a struct without memcpy, so i did just that, it's not incomplete.