msrle32: Remove superfluous defines.
This commit is contained in:
parent
44c22801e3
commit
4d24fc415f
|
@ -36,13 +36,10 @@ static HINSTANCE MSRLE32_hModule = 0;
|
||||||
|
|
||||||
#define compare_fourcc(fcc1, fcc2) (((fcc1)^(fcc2))&~0x20202020)
|
#define compare_fourcc(fcc1, fcc2) (((fcc1)^(fcc2))&~0x20202020)
|
||||||
|
|
||||||
#define ABS(a) ((a) < 0 ? -(a) : (a))
|
|
||||||
#define SQR(a) ((a) * (a))
|
|
||||||
|
|
||||||
static inline WORD ColorCmp(WORD clr1, WORD clr2)
|
static inline WORD ColorCmp(WORD clr1, WORD clr2)
|
||||||
{
|
{
|
||||||
UINT a = clr1 - clr2;
|
UINT a = clr1 - clr2;
|
||||||
return SQR(a);
|
return a * a;
|
||||||
}
|
}
|
||||||
static inline WORD Intensity(RGBQUAD clr)
|
static inline WORD Intensity(RGBQUAD clr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue