Merge branch 'master' of github.com:dankamongmen/notcurses

This commit is contained in:
nick black 2020-10-30 01:14:27 -04:00
commit 0f5f4cd1c3
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -2422,13 +2422,13 @@ ncpixel_r(uint32_t pixel){
// Extract the 8-bit green component from a pixel // Extract the 8-bit green component from a pixel
static inline unsigned static inline unsigned
ncpixel_g(uint32_t pixel){ ncpixel_g(uint32_t pixel){
return (pixel & 0x00ff0000ul) >> 16u; return (pixel & 0x0000ff00ul) >> 8u;
} }
// Extract the 8-bit blue component from a pixel // Extract the 8-bit blue component from a pixel
static inline unsigned static inline unsigned
ncpixel_b(uint32_t pixel){ ncpixel_b(uint32_t pixel){
return (pixel & 0x0000ff00ul) >> 8u; return (pixel & 0x00ff0000ul) >> 16u;
} }
// Set the 8-bit alpha component of a pixel // Set the 8-bit alpha component of a pixel