SDL_GetPixelFormatEnumForMasks() returns SDL_PixelFormatEnum

This commit is contained in:
Sam Lantinga committed 2024-03-06 16:19:08 -08:00
1 parent 01248a99c8
commit c70710cde8
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -486,7 +486,7 @@ static int SW_RenderCopyEx(SDL_Renderer *renderer, SDL_Surface *surface, SDL_Tex
* to be created. This makes all source pixels opaque and the colors get copied correctly.
*/
SDL_Surface *src_rotated_rgb;
int f = SDL_GetPixelFormatEnumForMasks(src_rotated->format->bits_per_pixel,
SDL_PixelFormatEnum f = SDL_GetPixelFormatEnumForMasks(src_rotated->format->bits_per_pixel,
src_rotated->format->Rmask,
src_rotated->format->Gmask,
src_rotated->format->Bmask,