include/gdipluspixelformats.h: Avoid explicit TRUE/FALSE in conditional expressions.

This commit is contained in:
Dmitry Timoshkov 2012-08-08 17:20:51 +09:00 committed by Alexandre Julliard
parent 4affaea0ba
commit 017f802875
1 changed files with 4 additions and 4 deletions

View File

@ -51,22 +51,22 @@ typedef INT PixelFormat;
static inline BOOL IsIndexedPixelFormat(PixelFormat format) static inline BOOL IsIndexedPixelFormat(PixelFormat format)
{ {
return (format & PixelFormatIndexed) ? TRUE : FALSE; return (format & PixelFormatIndexed) != 0;
} }
static inline BOOL IsAlphaPixelFormat(PixelFormat format) static inline BOOL IsAlphaPixelFormat(PixelFormat format)
{ {
return (format & PixelFormatAlpha) ? TRUE : FALSE; return (format & PixelFormatAlpha) != 0;
} }
static inline BOOL IsCanonicalPixelFormat(PixelFormat format) static inline BOOL IsCanonicalPixelFormat(PixelFormat format)
{ {
return (format & PixelFormatCanonical) ? TRUE : FALSE; return (format & PixelFormatCanonical) != 0;
} }
static inline BOOL IsExtendedPixelFormat(PixelFormat format) static inline BOOL IsExtendedPixelFormat(PixelFormat format)
{ {
return (format & PixelFormatExtended) ? TRUE : FALSE; return (format & PixelFormatExtended) != 0;
} }
static inline UINT GetPixelFormatSize(PixelFormat format) static inline UINT GetPixelFormatSize(PixelFormat format)