Fixed signed/unsigned comparison warning
parent
390fff4ae0
commit
da027ec3ee
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue