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

Condense `SDL_PixelFormat` copy code in `pgSurface_Blit()`

Open itzpr3d4t0r opened this issue 1 year ago • 2 comments
trafficstars

This PR tries to make code more compact, legible and not dependant on SDL versions. Not completely sure this will work though.

itzpr3d4t0r avatar Jul 07 '24 21:07 itzpr3d4t0r

@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?

oddbookworm avatar Jul 14 '24 23:07 oddbookworm

@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.

itzpr3d4t0r avatar Jul 15 '24 06:07 itzpr3d4t0r