Revert "Switch pixel format loss fields to number of bits"

This reverts commit 3c90b1c1f6.

It turns out this is problematic for sdl2-compat. We're investigating a more complete separation between SDL2 and SDL3 surfaces, but in the meantime, I'll fix the breakage.
This commit is contained in:
Sam Lantinga 2024-07-07 19:41:05 -07:00
parent 18c9bd21b5
commit 4fa5196820
9 changed files with 76 additions and 88 deletions

View file

@ -751,10 +751,10 @@ typedef struct SDL_PixelFormat
Uint32 Gmask;
Uint32 Bmask;
Uint32 Amask;
Uint8 Rbits;
Uint8 Gbits;
Uint8 Bbits;
Uint8 Abits;
Uint8 Rloss;
Uint8 Gloss;
Uint8 Bloss;
Uint8 Aloss;
Uint8 Rshift;
Uint8 Gshift;
Uint8 Bshift;