Fixed signed/unsigned comparison warning

main
Sam Lantinga 2024-03-19 17:00:46 -07:00
parent 390fff4ae0
commit da027ec3ee
2 changed files with 4 additions and 3 deletions

View File

@ -105,7 +105,8 @@ static SDL_PixelFormatEnum MFVidFmtGuidToSDLFmt(const GUID *guid)
return SDL_PIXELFORMAT_UNKNOWN;
}
static const GUID *SDLFmtToMFVidFmtGuid(Uint32 sdlfmt) {
static const GUID *SDLFmtToMFVidFmtGuid(SDL_PixelFormatEnum sdlfmt)
{
for (size_t i = 0; i < SDL_arraysize(fmtmappings); i++) {
if (fmtmappings[i].sdlfmt == sdlfmt) {
return fmtmappings[i].guid;

View File

@ -1185,7 +1185,7 @@ static SDL_bool IsSupportedBlendMode(SDL_Renderer *renderer, SDL_BlendMode blend
}
}
static SDL_bool IsSupportedFormat(SDL_Renderer *renderer, Uint32 format)
static SDL_bool IsSupportedFormat(SDL_Renderer *renderer, SDL_PixelFormatEnum format)
{
int i;
@ -1197,7 +1197,7 @@ static SDL_bool IsSupportedFormat(SDL_Renderer *renderer, Uint32 format)
return SDL_FALSE;
}
static Uint32 GetClosestSupportedFormat(SDL_Renderer *renderer, Uint32 format)
static Uint32 GetClosestSupportedFormat(SDL_Renderer *renderer, SDL_PixelFormatEnum format)
{
int i;