You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's inconsistent between SDL2 and SDL3, and I see no way to fix it.
In SDL2, (surf->format->BitsPerPixel), the value means the number of bits each pixel occupies in total. For example, RGBX => 32.
In SDL3, (SDL_BITSPERPIXEL(surf->format)), the value means the number of pixels occupied by the pixel's data, not including padding. So RGBX => 24.
These changes reduce SDL3 unit test failures.
Revert "Get rid of PG_SURF_BitsPerPixel"
This reverts commit 1276caa.
Fix PG_SURF_BitsPerPixel SDL3 implementation
0 commit comments