mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
sw_engine raster: removing unnecessary logical 'and' operation
Shifting the 32-bit number by 24 bits leaves only 8 bits, so there is no need to mask them with 0xFF.
This commit is contained in:
parent
8003c439fe
commit
307f3698a8
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
static uint32_t _colorAlpha(uint32_t c)
|
static uint32_t _colorAlpha(uint32_t c)
|
||||||
{
|
{
|
||||||
return (c >> 24) & 0xff;
|
return (c >> 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue