mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
fix ncpixel alpha mask
This commit is contained in:
parent
dc7c3c0487
commit
e596f9230f
@ -2377,7 +2377,7 @@ ncpixel(int r, int g, int b){
|
|||||||
// Extract the 8-bit alpha component from a pixel
|
// Extract the 8-bit alpha component from a pixel
|
||||||
static inline unsigned
|
static inline unsigned
|
||||||
ncpixel_a(uint32_t pixel){
|
ncpixel_a(uint32_t pixel){
|
||||||
return (pixel & 0xff0000fful) >> 24u;
|
return (pixel & 0xff000000ul) >> 24u;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract the 8 bit red component from a pixel
|
// Extract the 8 bit red component from a pixel
|
||||||
|
Loading…
Reference in New Issue
Block a user