🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
862
stars
141
forks
source link
premul_alpha doesn't respect weird surface pitches #2750
Open
Starbuck5 opened 6 months ago
I found this while reviewing the code of #2615
If the surface pitch is not aligned to 4 bytes, it doesn't properly skip through rows.
For example:
The final pixels of the 10-byte wide surface are never reached by the premultiply algorithm.