fix ncpixel alpha mask

pull/887/head
José Luis Cruz 4 years ago committed by Nick Black
parent dc7c3c0487
commit e596f9230f

@ -2377,7 +2377,7 @@ ncpixel(int r, int g, int b){
// Extract the 8-bit alpha component from a pixel
static inline unsigned
ncpixel_a(uint32_t pixel){
return (pixel & 0xff0000fful) >> 24u;
return (pixel & 0xff000000ul) >> 24u;
}
// Extract the 8 bit red component from a pixel

Loading…
Cancel
Save