mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-30 09:45:36 +00:00
SDL_GetPixelFormatEnumForMasks() returns SDL_PixelFormatEnum
This commit is contained in:
parent
01248a99c8
commit
c70710cde8
5 changed files with 6 additions and 6 deletions
|
|
@ -427,7 +427,7 @@ SDL_Surface *SDL_LoadBMP_RW(SDL_RWops *src, SDL_bool freesrc)
|
|||
|
||||
/* Create a compatible surface, note that the colors are RGB ordered */
|
||||
{
|
||||
Uint32 format;
|
||||
SDL_PixelFormatEnum format;
|
||||
|
||||
/* Get the pixel format */
|
||||
format = SDL_GetPixelFormatEnumForMasks(biBitCount, Rmask, Gmask, Bmask, Amask);
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ SDL_bool SDL_GetMasksForPixelFormatEnum(SDL_PixelFormatEnum format, int *bpp, Ui
|
|||
return SDL_TRUE;
|
||||
}
|
||||
|
||||
Uint32 SDL_GetPixelFormatEnumForMasks(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
|
||||
SDL_PixelFormatEnum SDL_GetPixelFormatEnumForMasks(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask)
|
||||
{
|
||||
switch (bpp) {
|
||||
case 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue