pygame-ce
pygame-ce copied to clipboard
Use SDL_AllocFormat instead of creating it manually
trafficstars
According to the docs, SDL_PixelFormat is a read-only structure. Creating it manually leaves out some important fields like format and next pointer to be undefined.