Skip to content
Snippets Groups Projects
Commit 944c4970 authored by Nicky's avatar Nicky
Browse files

Code stylistics.

(transplanted from 570ea799407270069974021eca3a5056d6908f58)
parent c4e21cf2
No related branches found
No related tags found
No related merge requests found
......@@ -563,19 +563,9 @@ void LLColor4U::setVecScaleClamp(const LLColor3& color)
inline U32 LLColor4U::asRGBA() const
{
U32 nRet( 0 );
// Little endian: values are swapped in memory. The original code access the array like a U32, so we need to swap here
nRet |= mV[ 3 ];
nRet <<= 8;
nRet |= mV[ 2 ];
nRet <<= 8;
nRet |= mV[ 1 ];
nRet <<= 8;
nRet |= mV[ 0 ];
return nRet;
return (mV[3] << 24) | (mV[2] << 16) | (mV[1] << 8) | mV[0];
}
inline void LLColor4U::fromRGBA( U32 aVal )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment