mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-07-30 18:57:30 +02:00
Update TFT_eSPI.cpp
This commit is contained in:
@ -4971,7 +4971,10 @@ uint16_t TFT_eSPI::decodeUTF8(uint8_t *buf, uint16_t *index, uint16_t remaining)
|
|||||||
** Function name: alphaBlend
|
** Function name: alphaBlend
|
||||||
** Description: Blend 16bit foreground and background
|
** Description: Blend 16bit foreground and background
|
||||||
*************************************************************************************x*/
|
*************************************************************************************x*/
|
||||||
inline uint16_t TFT_eSPI::alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc)
|
#ifndef STM32
|
||||||
|
inline
|
||||||
|
#endif
|
||||||
|
uint16_t TFT_eSPI::alphaBlend(uint8_t alpha, uint16_t fgc, uint16_t bgc)
|
||||||
{
|
{
|
||||||
// Split out and blend 5 bit red and blue channels
|
// Split out and blend 5 bit red and blue channels
|
||||||
uint32_t rxb = bgc & 0xF81F;
|
uint32_t rxb = bgc & 0xF81F;
|
||||||
|
Reference in New Issue
Block a user