From 26899f354461e8a2004afd3f8b9767713bf03c29 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 13 Aug 2020 11:56:18 -0400 Subject: [PATCH] s/8 bit/8-bit/g --- include/notcurses/notcurses.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index b8ac0a2c0..ccb895b70 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -2380,19 +2380,19 @@ ncpixel_a(uint32_t pixel){ return (pixel & 0xff000000ul) >> 24u; } -// Extract the 8 bit red component from a pixel +// Extract the 8-bit red component from a pixel static inline unsigned ncpixel_r(uint32_t pixel){ return (pixel & 0x000000fful); } -// Extract the 8 bit green component from a pixel +// Extract the 8-bit green component from a pixel static inline unsigned ncpixel_g(uint32_t pixel){ return (pixel & 0x00ff0000ul) >> 16u; } -// Extract the 8 bit blue component from a pixel +// Extract the 8-bit blue component from a pixel static inline unsigned ncpixel_b(uint32_t pixel){ return (pixel & 0x0000ff00ul) >> 8u;