Update TFT_eSPI.cpp

This commit is contained in:
Bodmer 2023-06-30 14:15:05 +01:00 committed by GitHub
parent 7c21d4ff56
commit 8b005b203f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4971,7 +4971,10 @@ uint16_t TFT_eSPI::decodeUTF8(uint8_t *buf, uint16_t *index, uint16_t remaining)
** Function name: alphaBlend
** Description: Blend 16bit foreground and background
*************************************************************************************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
uint32_t rxb = bgc & 0xF81F;