mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-12-23 02:39:19 +00:00
[CHG] Optimizing "uggly" u32 convertion ;)
This commit is contained in:
parent
1e934418d1
commit
49c5e0df03
1 changed files with 1 additions and 1 deletions
|
@ -1315,5 +1315,5 @@ u8 GRRLIB_ClampVar8(float Value) {
|
|||
* @return Returns the color in u32 format.
|
||||
*/
|
||||
u32 GRRLIB_GetColor( u8 r, u8 g, u8 b, u8 a ) {
|
||||
return (r * 0x1000000) + (g * 0x10000) + (b * 0x100) + a;
|
||||
return (r << 24) | (g << 16) | (b << 8) | a;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue