Skip to content

Commit

Permalink
Add note
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbuck5 committed Jan 26, 2025
1 parent 0f86a91 commit c661d6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src_c/_pygame.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ PG_GetSurfaceFormat(SDL_Surface *surf)
return surf->format;
}

// NOTE:
// palette is part of the format in SDL2, so these functions below have them
// as a separate parameter to be consistent with the SDL3 signature.
// They are ignoring the palette parameter, but not the palette data.

static inline void
PG_GetRGBA(Uint32 pixel, PG_PixelFormat *format, const SDL_Palette *palette,
Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a)
Expand Down

0 comments on commit c661d6a

Please sign in to comment.