One last 32 bit fix

This commit is contained in:
ted green 2015-06-08 13:58:51 -06:00
parent 9b4905c6b6
commit dced6eab22

View File

@ -2231,7 +2231,7 @@ ATTR_FORCE_INLINE UINT32 clampARGB(INT32 iterr, INT32 iterg, INT32 iterb, INT32
#else
ATTR_FORCE_INLINE rgb_union clampARGB(INT32 iterr, INT32 iterg, INT32 iterb, INT32 itera, UINT32 FBZCP)
ATTR_FORCE_INLINE UINT32 clampARGB(INT32 iterr, INT32 iterg, INT32 iterb, INT32 itera, UINT32 FBZCP)
{
rgb_union result;
INT16 r, g, b, a;
@ -2277,7 +2277,7 @@ ATTR_FORCE_INLINE rgb_union clampARGB(INT32 iterr, INT32 iterg, INT32 iterb, INT
result.rgb.b = (b < 0) ? 0 : (b > 0xff) ? 0xff : b;
result.rgb.a = (a < 0) ? 0 : (a > 0xff) ? 0xff : a;
}
return result;
return result.u;
}
#endif